python.pkgs.importlib-metadata: init at 0.6

This commit is contained in:
Frederik Rietdijk 2018-11-21 12:20:14 +01:00
parent 8bd9e91c72
commit 70948dc0fa
2 changed files with 31 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -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 {};
});