2018-11-21 11:20:14 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-04-01 15:50:33 +01:00
|
|
|
, setuptools_scm
|
|
|
|
, zipp
|
2018-11-21 11:20:14 +00:00
|
|
|
, pathlib2
|
|
|
|
, contextlib2
|
2019-04-01 15:50:33 +01:00
|
|
|
, configparser
|
2018-11-21 11:20:14 +00:00
|
|
|
, isPy3k
|
|
|
|
, importlib-resources
|
2019-04-01 15:50:33 +01:00
|
|
|
, packaging
|
2018-11-21 11:20:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "importlib-metadata";
|
2019-12-20 16:30:42 +00:00
|
|
|
version = "1.3.0";
|
2018-11-21 11:20:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "importlib_metadata";
|
|
|
|
inherit version;
|
2019-12-20 16:30:42 +00:00
|
|
|
sha256 = "0ibvvqajphwdclbr236gikvyja0ynvqjlix38kvsabgrf0jqafh7";
|
2018-11-21 11:20:14 +00:00
|
|
|
};
|
|
|
|
|
2019-04-01 15:50:33 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-11-21 11:20:14 +00:00
|
|
|
|
2019-04-01 15:50:33 +01:00
|
|
|
propagatedBuildInputs = [ zipp ]
|
|
|
|
++ lib.optionals (!isPy3k) [ pathlib2 contextlib2 configparser ];
|
|
|
|
|
|
|
|
checkInputs = [ importlib-resources packaging ];
|
2018-11-21 11:20:14 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Read metadata from Python packages";
|
|
|
|
homepage = https://importlib-metadata.readthedocs.io/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
2019-04-01 15:50:33 +01:00
|
|
|
}
|