14 buildPythonPackage rec {
15 pname = "pyproject-hooks";
19 disabled = pythonOlder "3.7";
22 pname = "pyproject_hooks";
24 hash = "sha256-HoWb1cQPrpRIZC3Yca30WeXiCEGG6NLCp5qCTJcNofg=";
27 nativeBuildInputs = [ flit-core ];
29 propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ];
31 # We need to disable tests because this package is part of the bootstrap chain
32 # and its test dependencies cannot be built yet when this is being built.
36 pytest = buildPythonPackage {
37 pname = "${pname}-pytest";
52 # fail to import setuptools
59 pythonImportsCheck = [ "pyproject_hooks" ];
62 description = "Low-level library for calling build-backends in `pyproject.toml`-based project";
63 homepage = "https://github.com/pypa/pyproject-hooks";
64 changelog = "https://github.com/pypa/pyproject-hooks/blob/v${version}/docs/changelog.rst";
65 license = licenses.mit;
66 maintainers = teams.python.members;