devpi-client: add missing input, switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2022-03-03 13:16:27 +01:00
parent ef8c2381d7
commit b543a5e27d

View file

@ -1,26 +1,24 @@
{ lib { lib
, argon2-cffi-bindings
, buildPythonApplication , buildPythonApplication
, fetchPypi
# buildInputs
, glibcLocales
, pkginfo
, check-manifest , check-manifest
# propagatedBuildInputs
, py
, devpi-common , devpi-common
, pluggy
, setuptools
# CheckInputs
, pytest
, pytest-flake8
, webtest
, mock
, devpi-server , devpi-server
, tox , fetchPypi
, sphinx
, wheel
, git , git
, glibcLocales
, mercurial , mercurial
, mock
, pkginfo
, pluggy
, py
, pytestCheckHook
, pytest-flake8
, setuptools
, sphinx
, tox
, webtest
, wheel
}: }:
buildPythonApplication rec { buildPythonApplication rec {
@ -29,24 +27,45 @@ buildPythonApplication rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "362eb26e95136a792491861cc2728d14a6309a9d4c4f13a7b9c3e6fd39de58ec"; hash = "sha256-Ni6ybpUTankkkYYcwnKNFKYwmp1MTxOnucPm/TneWOw=";
}; };
buildInputs = [ glibcLocales ]; buildInputs = [
glibcLocales
propagatedBuildInputs = [ py devpi-common pluggy setuptools check-manifest pkginfo ];
checkInputs = [
pytest pytest-flake8 webtest mock
devpi-server tox
sphinx wheel git mercurial
]; ];
# --fast skips tests which try to start a devpi-server improperly propagatedBuildInputs = [
checkPhase = '' argon2-cffi-bindings
HOME=$TMPDIR py.test --fast check-manifest
devpi-common
pkginfo
pluggy
py
setuptools
];
checkInputs = [
devpi-server
git
mercurial
mock
pytestCheckHook
pytest-flake8
sphinx
tox
webtest
wheel
];
preCheck = ''
export HOME=$(mktemp -d);
''; '';
pytestFlagsArray = [
# --fast skips tests which try to start a devpi-server improperly
"--fast"
];
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
@ -57,5 +76,4 @@ buildPythonApplication rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ lewo makefu ]; maintainers = with maintainers; [ lewo makefu ];
}; };
} }