diff --git a/pkgs/development/python-modules/importlib-metadata/default.nix b/pkgs/development/python-modules/importlib-metadata/default.nix new file mode 100644 index 000000000000..55c835e75cce --- /dev/null +++ b/pkgs/development/python-modules/importlib-metadata/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pathlib2 +, contextlib2 +, isPy3k +, importlib-resources +}: + +buildPythonPackage rec { + pname = "importlib-metadata"; + version = "0.6"; + + src = fetchPypi { + pname = "importlib_metadata"; + inherit version; + sha256 = "36b02c84f9001adf65209fefdf951be8e9014a95eab9938c0779ad5670359b1c"; + }; + + propagatedBuildInputs = [] ++ lib.optionals (!isPy3k) [ pathlib2 contextlib2 ]; + + checkInputs = [ importlib-resources ]; + + meta = with lib; { + description = "Read metadata from Python packages"; + homepage = https://importlib-metadata.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 e2edd49c5c63..23e40d6c2508 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-metadata = callPackage ../development/python-modules/importlib-metadata {}; + importlib-resources = callPackage ../development/python-modules/importlib-resources {}; });