blob: 2d69f1f855d7e1ad13413389541d9275f2139e34 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
flit-core,
# tests
pretend,
pytestCheckHook,
}:
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "25.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-1EOHLJjWd79g9qHy+MHLdI6P52LSv50xSLVZkpWw/E8=";
};
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 = {
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 lib.licenses; [
bsd2
asl20
];
maintainers = with lib.maintainers; [ bennofs ];
teams = [ lib.teams.python ];
};
};
in
packaging
|