mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 04:20:23 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
948 B
Nix
49 lines
948 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 ];
|
|
|
|
nativeCheckInputs = [
|
|
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
|