2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, nginx }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "devpi-server";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "6.0.0.dev0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devpi";
|
|
|
|
repo = "devpi";
|
|
|
|
rev = "68ee291ef29a93f6d921d4927aec8d13919b4a4c";
|
|
|
|
sha256 = "1ivd5dy9f2gq07w8n2gywa0n0d9wv8644l53ni9fz7i69jf8q2fm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
sourceRoot = "source/server";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
py
|
|
|
|
appdirs
|
|
|
|
devpi-common
|
2020-10-16 20:44:37 +00:00
|
|
|
defusedxml
|
2020-04-24 23:36:52 +00:00
|
|
|
execnet
|
|
|
|
itsdangerous
|
|
|
|
repoze_lru
|
|
|
|
passlib
|
|
|
|
pluggy
|
|
|
|
pyramid
|
|
|
|
strictyaml
|
|
|
|
waitress
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
beautifulsoup4
|
|
|
|
nginx
|
2020-12-25 13:55:36 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-flake8
|
|
|
|
webtest
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optionals isPy27 [ mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# root_passwd_hash tries to write to store
|
2020-06-18 07:06:33 +00:00
|
|
|
# TestMirrorIndexThings tries to write to /var through ngnix
|
|
|
|
# nginx tests try to write to /var
|
2020-12-25 13:55:36 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
export HOME=$TMPDIR
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-12-25 13:55:36 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"./test_devpi_server"
|
|
|
|
"--slow"
|
|
|
|
"-rfsxX"
|
|
|
|
"--ignore=test_devpi_server/test_nginx_replica.py"
|
|
|
|
"--ignore=test_devpi_server/test_streaming_nginx.py"
|
|
|
|
"--ignore=test_devpi_server/test_streaming_replica_nginx.py"
|
|
|
|
];
|
|
|
|
disabledTests = [
|
|
|
|
"root_passwd_hash_option"
|
|
|
|
"TestMirrorIndexThings"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib;{
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://doc.devpi.net";
|
|
|
|
description = "Github-style pypi index server and packaging meta tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|