summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/importlib-resources
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/importlib-resources')
-rw-r--r--pkgs/development/python-modules/importlib-resources/2.nix38
-rw-r--r--pkgs/development/python-modules/importlib-resources/default.nix11
2 files changed, 44 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/importlib-resources/2.nix b/pkgs/development/python-modules/importlib-resources/2.nix
new file mode 100644
index 000000000000..1034c3111306
--- /dev/null
+++ b/pkgs/development/python-modules/importlib-resources/2.nix
@@ -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 = [ ];
+ };
+}
diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix
index cd8fec1e54e0..2388fb1b26df 100644
--- a/pkgs/development/python-modules/importlib-resources/default.nix
+++ b/pkgs/development/python-modules/importlib-resources/default.nix
@@ -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 = [ ];
};
}