pythonPackages.enum34: refactor move to python-modules
This commit is contained in:
parent
61ed2b6ca1
commit
266ebed4a8
27
pkgs/development/python-modules/enum34/default.nix
Normal file
27
pkgs/development/python-modules/enum34/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonAtLeast
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
if pythonAtLeast "3.4" then null else buildPythonPackage rec {
|
||||||
|
pname = "enum34";
|
||||||
|
version = "1.1.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://pypi.python.org/pypi/enum34;
|
||||||
|
description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4";
|
||||||
|
license = licenses.bsd0;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2350,27 +2350,7 @@ in {
|
|||||||
|
|
||||||
enum-compat = callPackage ../development/python-modules/enum-compat { };
|
enum-compat = callPackage ../development/python-modules/enum-compat { };
|
||||||
|
|
||||||
enum34 = if pythonAtLeast "3.4" then null else buildPythonPackage rec {
|
enum34 = callPackage ../development/python-modules/enum34 { };
|
||||||
pname = "enum34";
|
|
||||||
version = "1.1.6";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1";
|
|
||||||
};
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -m unittest discover
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://pypi.python.org/pypi/enum34;
|
|
||||||
description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4";
|
|
||||||
license = "BSD";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
epc = buildPythonPackage rec {
|
epc = buildPythonPackage rec {
|
||||||
name = "epc-0.0.3";
|
name = "epc-0.0.3";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user