depot/third_party/nixpkgs/pkgs/development/python-modules/pyproject-hooks/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pytestCheckHook
, pythonOlder
, setuptools
, testpath
, tomli
}:
buildPythonPackage rec {
pname = "pyproject-hooks";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi rec {
pname = "pyproject_hooks";
inherit version;
hash = "sha256-8nGymLl/WVXVP7ErcsH7GUjCLBprcLMVxUztrKAmTvU=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
pytestCheckHook
setuptools
testpath
];
disabledTests = [
# fail to import setuptools
"test_setup_py"
"test_issue_104"
];
pythonImportsCheck = [
"pyproject_hooks"
];
meta = with lib; {
description = "Low-level library for calling build-backends in `pyproject.toml`-based project ";
homepage = "https://github.com/pypa/pyproject-hooks";
changelog = "https://github.com/pypa/pyproject-hooks/blob/v${version}/docs/changelog.rst";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}