mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
pythonPackages.shortuuid: refactor move to python-modules
This commit is contained in:
parent
faf3a7cc02
commit
283eb6f7d1
25
pkgs/development/python-modules/shortuuid/default.nix
Normal file
25
pkgs/development/python-modules/shortuuid/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -3720,24 +3720,7 @@ in {
|
||||||
|
|
||||||
simplegeneric = callPackage ../development/python-modules/simplegeneric { };
|
simplegeneric = callPackage ../development/python-modules/simplegeneric { };
|
||||||
|
|
||||||
shortuuid = buildPythonPackage rec {
|
shortuuid = callPackage ../development/python-modules/shortuuid { };
|
||||||
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 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
shouldbe = buildPythonPackage rec {
|
shouldbe = buildPythonPackage rec {
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
Loading…
Reference in a new issue