ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
48 lines
897 B
Nix
48 lines
897 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, typing-extensions
|
|
, toml
|
|
, zipp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "importlib-metadata";
|
|
version = "4.8.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "importlib_metadata";
|
|
inherit version;
|
|
sha256 = "sha256-db3sFMOX9ShyTBv9lwnWYLM6TS53OHozWPILhIu15fs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
toml
|
|
zipp
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
];
|
|
|
|
# Cyclic dependencies due to pyflakefs
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"importlib_metadata"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Read metadata from Python packages";
|
|
homepage = "https://importlib-metadata.readthedocs.io/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|