depot/third_party/nixpkgs/pkgs/development/python-modules/importlib-metadata/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

50 lines
967 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, setuptools-scm
, typing-extensions
, toml
, zipp
}:
buildPythonPackage rec {
pname = "importlib-metadata";
version = "6.8.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "importlib_metadata";
inherit version;
hash = "sha256-26zniS2MDErBrQlmYiMvgx1OZPTEVFvVMBaj6dRlR0M=";
};
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 ];
};
}