python2Packages.importlib-resources: use version 3.3.1 for python2
This commit is contained in:
parent
0ae04ca063
commit
7ee53c0c4f
3 changed files with 46 additions and 5 deletions
38
pkgs/development/python-modules/importlib-resources/2.nix
Normal file
38
pkgs/development/python-modules/importlib-resources/2.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools-scm
|
||||
, importlib-metadata
|
||||
, typing
|
||||
, singledispatch
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "importlib-resources";
|
||||
version = "3.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "importlib_resources";
|
||||
inherit version;
|
||||
sha256 = "0ed250dbd291947d1a298e89f39afcc477d5a6624770503034b72588601bcc05";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
propagatedBuildInputs = [
|
||||
importlib-metadata
|
||||
singledispatch
|
||||
typing
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Read resources from Python packages";
|
||||
homepage = "https://importlib-resources.readthedocs.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
|
@ -1,8 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools_scm
|
||||
, toml
|
||||
, setuptools-scm
|
||||
, importlib-metadata
|
||||
, typing ? null
|
||||
, singledispatch ? null
|
||||
|
@ -11,15 +10,16 @@
|
|||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "importlib_resources";
|
||||
pname = "importlib-resources";
|
||||
version = "5.1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "importlib_resources";
|
||||
inherit version;
|
||||
sha256 = "642586fc4740bd1cad7690f836b3321309402b20b332529f25617ff18e8e1370";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm toml ];
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
propagatedBuildInputs = [
|
||||
importlib-metadata
|
||||
] ++ lib.optional (pythonOlder "3.4") singledispatch
|
||||
|
@ -34,5 +34,6 @@ buildPythonPackage rec {
|
|||
description = "Read resources from Python packages";
|
||||
homepage = "https://importlib-resources.readthedocs.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -178,6 +178,8 @@ with self; with super; {
|
|||
|
||||
importlib-metadata = callPackage ../development/python-modules/importlib-metadata/2.nix { };
|
||||
|
||||
importlib-resources = callPackage ../development/python-modules/importlib-resources/2.nix { };
|
||||
|
||||
ipaddr = callPackage ../development/python-modules/ipaddr { };
|
||||
|
||||
ipykernel = callPackage ../development/python-modules/ipykernel/4.nix { };
|
||||
|
|
Loading…
Reference in a new issue