2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, pythonPackages, nginx }:
|
2017-12-04 14:11:12 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "devpi-server";
|
2018-02-14 22:01:43 +00:00
|
|
|
version = "4.4.0";
|
2017-12-04 14:11:12 +00:00
|
|
|
|
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-14 22:01:43 +00:00
|
|
|
sha256 = "0y77kcnk26pfid8vsw07v2k61x9sdl6wbmxg5qxnz3vd7703xpkl";
|
2017-12-04 14:11:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages;
|
|
|
|
[ devpi-common execnet itsdangerous pluggy waitress pyramid passlib ];
|
2018-02-14 22:01:43 +00:00
|
|
|
checkInputs = with pythonPackages; [ nginx webtest pytest beautifulsoup4 pytest-timeout mock pyyaml ];
|
|
|
|
preCheck = ''
|
|
|
|
# These tests pass with pytest 3.3.2 but not with pytest 3.4.0.
|
|
|
|
sed -i 's/test_basic/noop/' test_devpi_server/test_log.py
|
|
|
|
sed -i 's/test_new/noop/' test_devpi_server/test_log.py
|
|
|
|
sed -i 's/test_thread_run_try_again/noop/' test_devpi_server/test_replica.py
|
|
|
|
'';
|
2017-12-04 14:11:12 +00:00
|
|
|
checkPhase = ''
|
2018-02-14 22:01:43 +00:00
|
|
|
runHook preCheck
|
2017-12-04 14:11:12 +00:00
|
|
|
cd test_devpi_server/
|
|
|
|
PATH=$PATH:$out/bin pytest --slow -rfsxX
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib;{
|
|
|
|
homepage = http://doc.devpi.net;
|
|
|
|
description = "Github-style pypi index server and packaging meta tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|