dbfread: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:14:50 -07:00
parent b94706926b
commit 2b56afea4d
2 changed files with 20 additions and 15 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, fetchPypi, buildPythonPackage }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "dbfread";
version = "2.0.5";
src = fetchPypi {
inherit pname version;
sha256 = "0r5axq9ax0czyapm7b69krcv22r1nyb4vci7c5x8mx8pq1axim93";
};
meta = with stdenv.lib; {
description = "Read DBF Files with Python";
homepage = http://dbfread.readthedocs.org/;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

View File

@ -159,21 +159,7 @@ in {
dbf = callPackage ../development/python-modules/dbf { };
dbfread = buildPythonPackage rec {
name = "dbfread-2.0.5";
meta = {
description = "Read DBF Files with Python";
homepage = "http://dbfread.readthedocs.org/";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
src = pkgs.fetchurl {
url = "mirror://pypi/d/dbfread/${name}.tar.gz";
sha256 = "0r5axq9ax0czyapm7b69krcv22r1nyb4vci7c5x8mx8pq1axim93";
};
};
dbfread = callPackage ../development/python-modules/dbfread { };
dkimpy = callPackage ../development/python-modules/dkimpy { };