agate-excel: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:10:26 -07:00
parent 90daf2de27
commit 4365d634c8
2 changed files with 23 additions and 17 deletions

View File

@ -0,0 +1,22 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, openpyxl, xlrd }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-excel";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "1d28s01a0a8n8rdrd78w88cqgl3lawzy38h9afwm0iks618i0qn7";
};
propagatedBuildInputs = [ agate openpyxl xlrd ];
meta = with stdenv.lib; {
description = "Adds read support for excel files to agate";
homepage = "https://github.com/wireservice/agate-excel";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}

View File

@ -120,23 +120,7 @@ in {
phonenumbers = callPackage ../development/python-modules/phonenumbers { };
agate-excel = buildPythonPackage rec {
name = "agate-excel-0.2.1";
meta = {
description = "Adds read support for excel files to agate";
homepage = "https://github.com/wireservice/agate-excel";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ agate openpyxl xlrd ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate-excel/${name}.tar.gz";
sha256 = "1d28s01a0a8n8rdrd78w88cqgl3lawzy38h9afwm0iks618i0qn7";
};
};
agate-excel = callPackage ../development/python-modules/agate-excel { };
agate-sql = buildPythonPackage rec {
name = "agate-sql-0.5.2";