Merge pull request #162614 from fabaff/fix-devpi-client
devpi-client: add missing input, switch to pytestCheckHook
This commit is contained in:
commit
ddafcd3f7a
@ -1,26 +1,24 @@
|
||||
{ lib
|
||||
, argon2-cffi-bindings
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
# buildInputs
|
||||
, glibcLocales
|
||||
, pkginfo
|
||||
, check-manifest
|
||||
# propagatedBuildInputs
|
||||
, py
|
||||
, devpi-common
|
||||
, pluggy
|
||||
, setuptools
|
||||
# CheckInputs
|
||||
, pytest
|
||||
, pytest-flake8
|
||||
, webtest
|
||||
, mock
|
||||
, devpi-server
|
||||
, tox
|
||||
, sphinx
|
||||
, wheel
|
||||
, fetchPypi
|
||||
, git
|
||||
, glibcLocales
|
||||
, mercurial
|
||||
, mock
|
||||
, pkginfo
|
||||
, pluggy
|
||||
, py
|
||||
, pytestCheckHook
|
||||
, pytest-flake8
|
||||
, setuptools
|
||||
, sphinx
|
||||
, tox
|
||||
, webtest
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
@ -29,24 +27,45 @@ buildPythonApplication rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "362eb26e95136a792491861cc2728d14a6309a9d4c4f13a7b9c3e6fd39de58ec";
|
||||
hash = "sha256-Ni6ybpUTankkkYYcwnKNFKYwmp1MTxOnucPm/TneWOw=";
|
||||
};
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
propagatedBuildInputs = [ py devpi-common pluggy setuptools check-manifest pkginfo ];
|
||||
|
||||
checkInputs = [
|
||||
pytest pytest-flake8 webtest mock
|
||||
devpi-server tox
|
||||
sphinx wheel git mercurial
|
||||
buildInputs = [
|
||||
glibcLocales
|
||||
];
|
||||
|
||||
# --fast skips tests which try to start a devpi-server improperly
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR py.test --fast
|
||||
propagatedBuildInputs = [
|
||||
argon2-cffi-bindings
|
||||
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";
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
@ -57,5 +76,4 @@ buildPythonApplication rec {
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lewo makefu ];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user