python.pkgs.enum-compat: move to a separate file
This commit is contained in:
parent
a299bf6692
commit
2a32c8a1ed
21
pkgs/development/python-modules/enum-compat/default.nix
Normal file
21
pkgs/development/python-modules/enum-compat/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user