Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / packaging / default.nix
blob32ce7fd8accb69147966ddb4db22aca70847e622
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
6 # build-system
7 , flit-core
9 # tests
10 , pretend
11 , pytestCheckHook
14 let
15   packaging = buildPythonPackage rec {
16     pname = "packaging";
17     version = "24.0";
18     pyproject = true;
20     disabled = pythonOlder "3.7";
22     src = fetchPypi {
23       inherit pname version;
24       hash = "sha256-64LF4+ViCQdHZuaIW7BLjDigwBXQowA26+fs40yZiek=";
25     };
27     nativeBuildInputs = [
28       flit-core
29     ];
31     nativeCheckInputs = [
32       pytestCheckHook
33       pretend
34     ];
36     pythonImportsCheck = [
37       "packaging"
38       "packaging.metadata"
39       "packaging.requirements"
40       "packaging.specifiers"
41       "packaging.tags"
42       "packaging.version"
43     ];
45     # Prevent circular dependency with pytest
46     doCheck = false;
48     passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; });
50     meta = with lib; {
51       changelog = "https://github.com/pypa/packaging/blob/${version}/CHANGELOG.rst";
52       description = "Core utilities for Python packages";
53       downloadPage = "https://github.com/pypa/packaging";
54       homepage = "https://packaging.pypa.io/";
55       license = with licenses; [ bsd2 asl20 ];
56       maintainers = teams.python.members ++ (with maintainers; [ bennofs ]);
57     };
58   };
60 packaging