blob: 34867f50c38196d4c169d29ceb223bb3e3670119 (
plain)
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "distlib";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-/uxAB1vgOgRQGpc9gfYzc1tLafmLBUUFkjEMD0AaTg0=";
};
nativeBuildInputs = [ setuptools ];
postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
find $out -name '*.exe' -delete
'';
pythonImportsCheck = [
"distlib"
"distlib.database"
"distlib.locators"
"distlib.index"
"distlib.markers"
"distlib.metadata"
"distlib.util"
"distlib.resources"
];
# Tests use pypi.org.
doCheck = false;
meta = {
description = "Low-level components of distutils2/packaging";
homepage = "https://distlib.readthedocs.io";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ lnl7 ];
};
}
|