python3Packages.pyproject-api: init at 1.2.1
Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
parent
f2d8a76868
commit
c8ff23158e
89
pkgs/development/python-modules/pyproject-api/default.nix
Normal file
89
pkgs/development/python-modules/pyproject-api/default.nix
Normal file
@ -0,0 +1,89 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build time
|
||||
, hatchling
|
||||
, hatch-vcs
|
||||
, setuptools-scm
|
||||
|
||||
# runtime
|
||||
, packaging
|
||||
, toml
|
||||
, tomli
|
||||
|
||||
# docs
|
||||
, sphinxHook
|
||||
, furo
|
||||
, sphinx-autodoc-typehints
|
||||
|
||||
# tests
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, virtualenv
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyproject-api";
|
||||
version = "1.2.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tox-dev";
|
||||
repo = "pyproject-api";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-IRNg0/lTWoS8znsbipZNoeun+uOpZtCApL4HkF2lwhU=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"doc"
|
||||
];
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
hatch-vcs
|
||||
setuptools-scm
|
||||
|
||||
# docs
|
||||
sphinxHook
|
||||
furo
|
||||
sphinx-autodoc-typehints
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
virtualenv
|
||||
wheel
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# requires eol python2 interpreter
|
||||
"test_can_build_on_python_2"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyproject_api"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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 = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -6953,6 +6953,8 @@ self: super: with self; {
|
||||
|
||||
pyprecice = callPackage ../development/python-modules/pyprecice { };
|
||||
|
||||
pyproject-api = callPackage ../development/python-modules/pyproject-api { };
|
||||
|
||||
pypsrp = callPackage ../development/python-modules/pypsrp { };
|
||||
|
||||
phpserialize = callPackage ../development/python-modules/phpserialize { };
|
||||
|
Loading…
Reference in New Issue
Block a user