blob: 4ddebe8901df24976ab8345f7df192a3621c115b (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build-system
flit-core,
# tests
pretend,
pytestCheckHook,
}:
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "24.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Am7XLI7T/M5b+JUFciWGmJJ/0dvaEKXpgc3wrDf08AI=";
};
nativeBuildInputs = [ flit-core ];
nativeCheckInputs = [
pytestCheckHook
pretend
];
pythonImportsCheck = [
"packaging"
"packaging.metadata"
"packaging.requirements"
"packaging.specifiers"
"packaging.tags"
"packaging.version"
];
# Prevent circular dependency with pytest
doCheck = false;
passthru.tests = packaging.overridePythonAttrs (_: {
doCheck = true;
});
meta = with lib; {
changelog = "https://github.com/pypa/packaging/blob/${version}/CHANGELOG.rst";
description = "Core utilities for Python packages";
downloadPage = "https://github.com/pypa/packaging";
homepage = "https://packaging.pypa.io/";
license = with licenses; [
bsd2
asl20
];
maintainers = teams.python.members ++ (with maintainers; [ bennofs ]);
};
};
in
packaging
|