mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python.pkgs.importlib-resources: init at 1.0.2
This commit is contained in:
parent
d43a8b7d86
commit
8bd9e91c72
2 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pathlib2
|
||||||
|
, typing
|
||||||
|
, isPy3k
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "importlib_resources";
|
||||||
|
version = "1.0.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "d3279fd0f6f847cced9f7acc19bd3e5df54d34f93a2e7bb5f238f81545787078";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
] ++ lib.optional (!isPy3k) pathlib2
|
||||||
|
++ lib.optional (pythonOlder "3.5") typing
|
||||||
|
;
|
||||||
|
|
||||||
|
# https://gitlab.com/python-devs/importlib_resources/issues/69
|
||||||
|
doCheck = !isPy3k;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Read resources from Python packages";
|
||||||
|
homepage = https://importlib-resources.readthedocs.io/;
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5078,6 +5078,8 @@ in {
|
||||||
|
|
||||||
nanoleaf = callPackage ../development/python-modules/nanoleaf { };
|
nanoleaf = callPackage ../development/python-modules/nanoleaf { };
|
||||||
|
|
||||||
|
importlib-resources = callPackage ../development/python-modules/importlib-resources {};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
in fix' (extends overrides packages)
|
in fix' (extends overrides packages)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue