pythonPackages.unicodecsv: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 12:30:25 -04:00
parent 3af94ba30e
commit 864c7f94cf
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 25 additions and 18 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
version = "0.14.1";
pname = "unicodecsv";
src = fetchPypi {
inherit pname version;
sha256 = "1z7pdwkr6lpsa7xbyvaly7pq3akflbnz8gq62829lr28gl1hi301";
};
# ImportError: No module named runtests
doCheck = false;
meta = with stdenv.lib; {
description = "Drop-in replacement for Python2's stdlib csv module, with unicode support";
homepage = https://github.com/jdunck/python-unicodecsv;
maintainers = with maintainers; [ koral ];
};
}

View File

@ -4043,24 +4043,7 @@ in {
umemcache = callPackage ../development/python-modules/umemcache {};
unicodecsv = buildPythonPackage rec {
version = "0.14.1";
name = "unicodecsv-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/u/unicodecsv/${name}.tar.gz";
sha256 = "1z7pdwkr6lpsa7xbyvaly7pq3akflbnz8gq62829lr28gl1hi301";
};
# ImportError: No module named runtests
doCheck = false;
meta = {
description = "Drop-in replacement for Python2's stdlib csv module, with unicode support";
homepage = https://github.com/jdunck/python-unicodecsv;
maintainers = with maintainers; [ koral ];
};
};
unicodecsv = callPackage ../development/python-modules/unicodecsv { };
unittest2 = buildPythonPackage rec {
version = "1.1.0";