pythonPackages.shortuuid: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 13:20:02 -04:00 committed by Frederik Rietdijk
parent faf3a7cc02
commit 283eb6f7d1
2 changed files with 26 additions and 18 deletions

View file

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pep8
}:
buildPythonPackage rec {
pname = "shortuuid";
version = "0.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "4606dbb19124d98109c00e2cafae2df8117aec02115623e18fb2abe3f766d293";
};
buildInputs = [pep8];
meta = with stdenv.lib; {
description = "A generator library for concise, unambiguous and URL-safe UUIDs";
homepage = https://github.com/stochastic-technologies/shortuuid/;
license = licenses.bsd3;
maintainers = with maintainers; [ zagy ];
};
}

View file

@ -3720,24 +3720,7 @@ in {
simplegeneric = callPackage ../development/python-modules/simplegeneric { };
shortuuid = buildPythonPackage rec {
name = "shortuuid-${version}";
version = "0.4.3";
src = pkgs.fetchurl {
url = "mirror://pypi/s/shortuuid/${name}.tar.gz";
sha256 = "4606dbb19124d98109c00e2cafae2df8117aec02115623e18fb2abe3f766d293";
};
buildInputs = with self; [pep8];
meta = {
description = "A generator library for concise, unambiguous and URL-safe UUIDs";
homepage = https://github.com/stochastic-technologies/shortuuid/;
license = licenses.bsd3;
maintainers = with maintainers; [ zagy ];
};
};
shortuuid = callPackage ../development/python-modules/shortuuid { };
shouldbe = buildPythonPackage rec {
version = "0.1.0";