2022-10-06 18:32:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication, isPy27
|
|
|
|
, aiohttp
|
|
|
|
, appdirs
|
|
|
|
, beautifulsoup4
|
|
|
|
, defusedxml
|
|
|
|
, devpi-common
|
|
|
|
, execnet
|
|
|
|
, itsdangerous
|
|
|
|
, nginx
|
|
|
|
, packaging
|
|
|
|
, passlib
|
|
|
|
, platformdirs
|
|
|
|
, pluggy
|
|
|
|
, pyramid
|
|
|
|
, pytest-flake8
|
|
|
|
, pytestCheckHook
|
|
|
|
, repoze_lru
|
|
|
|
, setuptools
|
|
|
|
, strictyaml
|
|
|
|
, waitress
|
|
|
|
, webtest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "devpi-server";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "6.7.0";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devpi";
|
|
|
|
repo = "devpi";
|
2022-10-06 18:32:54 +00:00
|
|
|
rev = "server-${version}";
|
|
|
|
hash = "sha256-tevQ/Ocusz2PythGnedP6r4xARgetVosAc8uTD49H3M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
sourceRoot = "source/server";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-06 18:32:54 +00:00
|
|
|
aiohttp
|
2020-04-24 23:36:52 +00:00
|
|
|
appdirs
|
2020-10-16 20:44:37 +00:00
|
|
|
defusedxml
|
2022-10-06 18:32:54 +00:00
|
|
|
devpi-common
|
2020-04-24 23:36:52 +00:00
|
|
|
execnet
|
|
|
|
itsdangerous
|
2022-10-06 18:32:54 +00:00
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
passlib
|
2022-10-06 18:32:54 +00:00
|
|
|
platformdirs
|
2020-04-24 23:36:52 +00:00
|
|
|
pluggy
|
|
|
|
pyramid
|
2022-10-06 18:32:54 +00:00
|
|
|
repoze_lru
|
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
strictyaml
|
|
|
|
waitress
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ passlib.optional-dependencies.argon2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
checkInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
beautifulsoup4
|
|
|
|
nginx
|
|
|
|
pytest-flake8
|
2022-10-06 18:32:54 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
webtest
|
2022-10-06 18:32:54 +00:00
|
|
|
];
|
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-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|