blob: 511424fb19834b9bb6a834c6992e0ee13c92e6c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, setuptools-scm
, typing-extensions
, toml
, zipp
}:
buildPythonPackage rec {
pname = "importlib-metadata";
version = "7.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "importlib_metadata";
inherit version;
hash = "sha256-t4k4uSbujV8CD8R3LUhwRYBaVd260uzyHG1gk43H/NI=";
};
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 ];
};
}
|