ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / packaging / default.nix
blobc7587cb5c5dc88314cc46384252215e2bc512bd9
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pyparsing
5 , pytestCheckHook
6 , pythonOlder
7 , pretend
8 , setuptools
9 }:
11 let
12   packaging = buildPythonPackage rec {
13     pname = "packaging";
14     version = "21.3";
15     format = "pyproject";
17     disabled = pythonOlder "3.6";
19     src = fetchPypi {
20       inherit pname version;
21       sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
22     };
24     nativeBuildInputs = [
25       setuptools
26     ];
28     propagatedBuildInputs = [ pyparsing ];
30     checkInputs = [
31       pytestCheckHook
32       pretend
33     ];
35     # Prevent circular dependency
36     doCheck = false;
38     passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; });
40     meta = with lib; {
41       description = "Core utilities for Python packages";
42       homepage = "https://github.com/pypa/packaging";
43       license = with licenses; [ bsd2 asl20 ];
44       maintainers = with maintainers; [ bennofs ];
45     };
46   };
48 packaging