devpi-server: 4.4.0 -> 4.9.0

This commit is contained in:
Jonathan Ringer 2019-06-17 17:50:48 -07:00 committed by Frederik Rietdijk
parent 5e85d08484
commit 3c00c7239d

View File

@ -1,28 +1,40 @@
{ stdenv, pythonPackages, nginx }: { stdenv, python3Packages, nginx }:
pythonPackages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "devpi-server"; pname = "devpi-server";
version = "4.4.0"; version = "4.9.0";
src = pythonPackages.fetchPypi { src = python3Packages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0y77kcnk26pfid8vsw07v2k61x9sdl6wbmxg5qxnz3vd7703xpkl"; sha256 = "0cx0nv1qqv8lg6p1v8dv5val0dxnc3229c15imibl9wrhrffjbg9";
}; };
propagatedBuildInputs = with pythonPackages; propagatedBuildInputs = with python3Packages; [
[ devpi-common execnet itsdangerous pluggy waitress pyramid passlib ]; appdirs
checkInputs = with pythonPackages; [ nginx webtest pytest beautifulsoup4 pytest-timeout mock pyyaml ]; devpi-common
preCheck = '' execnet
# These tests pass with pytest 3.3.2 but not with pytest 3.4.0. itsdangerous
sed -i 's/test_basic/noop/' test_devpi_server/test_log.py passlib
sed -i 's/test_new/noop/' test_devpi_server/test_log.py pluggy
sed -i 's/test_thread_run_try_again/noop/' test_devpi_server/test_replica.py pyramid
''; strictyaml
waitress
];
checkInputs = with python3Packages; [
beautifulsoup4
mock
nginx
pytest
pytest-flakes
pytestpep8
webtest
];
# test_genconfig.py needs devpi-server on PATH
checkPhase = '' checkPhase = ''
runHook preCheck PATH=$PATH:$out/bin pytest ./test_devpi_server --slow -rfsxX
cd test_devpi_server/
PATH=$PATH:$out/bin pytest --slow -rfsxX
''; '';
meta = with stdenv.lib;{ meta = with stdenv.lib;{