diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/packaging/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/packaging/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/packaging/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/packaging/default.nix new file mode 100644 index 000000000000..061e8edaac6f --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/packaging/default.nix @@ -0,0 +1,45 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pyparsing +, six +, pytestCheckHook +, pretend +, flit-core +}: + +buildPythonPackage rec { + pname = "packaging"; + version = "20.7"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "Ba87uF0yA3fbKBzyVKsFDhp+vL9UEGhamkB+GKH4EjY="; + }; + + nativeBuildInputs = [ + flit-core + ]; + + propagatedBuildInputs = [ pyparsing six ]; + + checkInputs = [ + pytestCheckHook + pretend + ]; + + checkPhase = '' + py.test tests + ''; + + # Prevent circular dependency + doCheck = false; + + meta = with stdenv.lib; { + description = "Core utilities for Python packages"; + homepage = "https://github.com/pypa/packaging"; + license = [ licenses.bsd2 licenses.asl20 ]; + maintainers = with maintainers; [ bennofs ]; + }; +} |