From 8bd9e91c72b4b90b5c1f977c951c5472a5cb108c Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 21 Nov 2018 12:19:56 +0100 Subject: [PATCH] python.pkgs.importlib-resources: init at 1.0.2 --- .../importlib-resources/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/importlib-resources/default.nix diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix new file mode 100644 index 00000000000..331c88a5e3a --- /dev/null +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -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; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1f5323baa30..e2edd49c5c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5078,6 +5078,8 @@ in { nanoleaf = callPackage ../development/python-modules/nanoleaf { }; + importlib-resources = callPackage ../development/python-modules/importlib-resources {}; + }); in fix' (extends overrides packages)