Files
nixpkgs/pkgs/development/python-modules/packaging/default.nix
Martin Weinelt b5901055ef Revert "python3Packages.packaging: 21.3 -> 22.0"
This reverts commit 31bae8490a334b1a70abed1df042cbe00bbc9d3f.

It is possibly too early to incur this breaking package.
2023-01-05 01:08:49 +01:00

49 lines
942 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyparsing
, pytestCheckHook
, pythonOlder
, pretend
, setuptools
}:
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "21.3";
format = "pyproject";
disabled = pythonOlder "3.6";
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