agate-dbf: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:09:41 -07:00
parent 4036bc91da
commit 90daf2de27
2 changed files with 23 additions and 18 deletions

View File

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

View File

@ -116,26 +116,10 @@ in {
agate = callPackage ../development/python-modules/agate { };
agate-dbf = callPackage ../development/python-modules/agate-dbf { };
phonenumbers = callPackage ../development/python-modules/phonenumbers { };
agate-dbf = buildPythonPackage rec {
name = "agate-dbf-0.2.0";
meta = {
description = "Adds read support for dbf files to agate";
homepage = "https://github.com/wireservice/agate-dbf";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ agate dbf dbfread ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate-dbf/${name}.tar.gz";
sha256 = "0pkk6m873xpqj77ja6ylmg8v41abpn4bvsqw6mh2hjyd0snw2rh6";
};
};
agate-excel = buildPythonPackage rec {
name = "agate-excel-0.2.1";