python.pkgs.enum-compat: move to a separate file

This commit is contained in:
Nikolay Amiantov 2018-02-25 20:25:32 +03:00
parent a299bf6692
commit 2a32c8a1ed
2 changed files with 22 additions and 19 deletions

View File

@ -0,0 +1,21 @@
{ lib, buildPythonPackage, fetchPypi, enum34 }:
buildPythonPackage rec {
pname = "enum-compat";
version = "0.0.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "14j1i963jic2vncbf9k5nq1vvv8pw2zsg7yvwhm7d9c6h7qyz74k";
};
propagatedBuildInputs = [ enum34 ];
meta = with lib; {
homepage = https://github.com/jstasiak/enum-compat;
description = "enum/enum34 compatibility package";
license = licenses.mit;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@ -7367,25 +7367,7 @@ in {
};
};
enum-compat = buildPythonPackage rec {
pname = "enum-compat";
version = "0.0.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "14j1i963jic2vncbf9k5nq1vvv8pw2zsg7yvwhm7d9c6h7qyz74k";
};
propagatedBuildInputs = with self; [ enum34 ];
meta = {
homepage = "https://github.com/jstasiak/enum-compat";
description = "enum/enum34 compatibility package";
license = licenses.mit;
maintainers = with maintainers; [ abbradar ];
};
};
enum-compat = callPackage ../development/python-modules/enum-compat { };
enum34 = if pythonAtLeast "3.4" then null else buildPythonPackage rec {
pname = "enum34";