mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 23:36:39 +01:00
68 lines
1.1 KiB
Nix
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 = [ ];
|
|
};
|
|
}
|