e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
50 lines
967 B
Nix
50 lines
967 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
, typing-extensions
|
|
, toml
|
|
, zipp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "importlib-metadata";
|
|
version = "6.9.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "importlib_metadata";
|
|
inherit version;
|
|
hash = "sha256-6Ky1I8M1qRgiZ04Um0bAOZ7E0yjE0fbknCc9pf8CAbk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools # otherwise cross build fails
|
|
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 AndersonTorres ];
|
|
};
|
|
}
|