biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / packaging / default.nix
blob4ddebe8901df24976ab8345f7df192a3621c115b
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
7   # build-system
8   flit-core,
10   # tests
11   pretend,
12   pytestCheckHook,
15 let
16   packaging = buildPythonPackage rec {
17     pname = "packaging";
18     version = "24.1";
19     pyproject = true;
21     disabled = pythonOlder "3.7";
23     src = fetchPypi {
24       inherit pname version;
25       hash = "sha256-Am7XLI7T/M5b+JUFciWGmJJ/0dvaEKXpgc3wrDf08AI=";
26     };
28     nativeBuildInputs = [ flit-core ];
30     nativeCheckInputs = [
31       pytestCheckHook
32       pretend
33     ];
35     pythonImportsCheck = [
36       "packaging"
37       "packaging.metadata"
38       "packaging.requirements"
39       "packaging.specifiers"
40       "packaging.tags"
41       "packaging.version"
42     ];
44     # Prevent circular dependency with pytest
45     doCheck = false;
47     passthru.tests = packaging.overridePythonAttrs (_: {
48       doCheck = true;
49     });
51     meta = with lib; {
52       changelog = "https://github.com/pypa/packaging/blob/${version}/CHANGELOG.rst";
53       description = "Core utilities for Python packages";
54       downloadPage = "https://github.com/pypa/packaging";
55       homepage = "https://packaging.pypa.io/";
56       license = with licenses; [
57         bsd2
58         asl20
59       ];
60       maintainers = teams.python.members ++ (with maintainers; [ bennofs ]);
61     };
62   };
64 packaging