pythonPackages.zbase32: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 09:52:36 -04:00
parent 6426e0f01e
commit 0f2f899bba
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 28 additions and 20 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, setuptoolsDarcs
}:
buildPythonPackage rec {
pname = "zbase32";
version = "1.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "2f44b338f750bd37b56e7887591bf2f1965bfa79f163b6afcbccf28da642ec56";
};
# Tests require `pyutil' so disable them to avoid circular references.
doCheck = false;
propagatedBuildInputs = [ setuptoolsDarcs ];
meta = with stdenv.lib; {
description = "zbase32, a base32 encoder/decoder";
homepage = https://pypi.python.org/pypi/zbase32;
license = licenses.bsd0;
};
}

View File

@ -4160,26 +4160,7 @@ in {
phantomjsSupport = false;
};
zbase32 = buildPythonPackage (rec {
name = "zbase32-1.1.2";
src = pkgs.fetchurl {
url = "mirror://pypi/z/zbase32/${name}.tar.gz";
sha256 = "2f44b338f750bd37b56e7887591bf2f1965bfa79f163b6afcbccf28da642ec56";
};
# Tests require `pyutil' so disable them to avoid circular references.
doCheck = false;
propagatedBuildInputs = with self; [ setuptoolsDarcs ];
meta = {
description = "zbase32, a base32 encoder/decoder";
homepage = https://pypi.python.org/pypi/zbase32;
license = "BSD";
};
});
zbase32 = callPackage ../development/python-modules/zbase32 { };
zconfig = callPackage ../development/python-modules/zconfig { };