depot/third_party/nixpkgs/pkgs/development/python-modules/packaging/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

45 lines
893 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyparsing
, pytestCheckHook
, pretend
, setuptools
}:
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "21.3";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ pyparsing ];
checkInputs = [
pytestCheckHook
pretend
];
# Prevent circular dependency
doCheck = false;
passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; });
meta = with lib; {
description = "Core utilities for Python packages";
homepage = "https://github.com/pypa/packaging";
license = with licenses; [ bsd2 asl20 ];
maintainers = with maintainers; [ bennofs ];
};
};
in
packaging