nixpkgs/pkgs/development/python-modules/pyproject-api/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

68 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build time
hatchling,
hatch-vcs,
# runtime
packaging,
# docs
sphinxHook,
furo,
sphinx-autodoc-typehints,
# tests
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyproject-api";
version = "1.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tox-dev";
repo = "pyproject-api";
tag = version;
hash = "sha256-fWlGGVjB43NPfBRFfOWqZUDQuqOdrFP7jsqq9xOfvaw=";
};
outputs = [
"out"
"doc"
];
build-system = [
hatchling
hatch-vcs
];
nativeBuildInputs = [
# docs
sphinxHook
furo
sphinx-autodoc-typehints
];
dependencies = [ packaging ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "pyproject_api" ];
meta = {
changelog = "https://github.com/tox-dev/pyproject-api/releases/tag/${version}";
description = "API to interact with the python pyproject.toml based projects";
homepage = "https://github.com/tox-dev/pyproject-api";
license = lib.licenses.mit;
maintainers = [ ];
};
}