diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-16 14:30:03 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-17 07:46:59 +0200 |
commit | 266ebed4a8750c48928f8e1a9a8cc8295a1843dc (patch) | |
tree | dfc69f3e804768f34390d2b1abe85225921c9090 /pkgs | |
parent | 61ed2b6ca1f1c68e6a62566c8c3cfdb2550a45cc (diff) | |
download | nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.tar nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.tar.gz nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.tar.bz2 nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.tar.lz nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.tar.xz nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.tar.zst nixlib-266ebed4a8750c48928f8e1a9a8cc8295a1843dc.zip |
pythonPackages.enum34: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/enum34/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 22 |
2 files changed, 28 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/enum34/default.nix b/pkgs/development/python-modules/enum34/default.nix new file mode 100644 index 000000000000..a5175eba49d8 --- /dev/null +++ b/pkgs/development/python-modules/enum34/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a7668070403e..2bc713d39ff2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2350,27 +2350,7 @@ in { enum-compat = callPackage ../development/python-modules/enum-compat { }; - enum34 = if pythonAtLeast "3.4" then null else buildPythonPackage rec { - 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"; - }; - }; + enum34 = callPackage ../development/python-modules/enum34 { }; epc = buildPythonPackage rec { name = "epc-0.0.3"; |