2023-10-13 14:00:29 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication
|
|
|
|
, pythonOlder
|
2022-10-02 10:28:46 +00:00
|
|
|
, aiohttp
|
|
|
|
, appdirs
|
|
|
|
, beautifulsoup4
|
|
|
|
, defusedxml
|
|
|
|
, devpi-common
|
|
|
|
, execnet
|
|
|
|
, itsdangerous
|
|
|
|
, nginx
|
|
|
|
, packaging
|
|
|
|
, passlib
|
|
|
|
, platformdirs
|
|
|
|
, pluggy
|
2022-12-30 16:24:44 +00:00
|
|
|
, py
|
2022-10-02 10:28:46 +00:00
|
|
|
, pyramid
|
|
|
|
, pytestCheckHook
|
2023-11-11 08:21:17 +00:00
|
|
|
, repoze-lru
|
2022-10-02 10:28:46 +00:00
|
|
|
, setuptools
|
|
|
|
, strictyaml
|
|
|
|
, waitress
|
|
|
|
, webtest
|
|
|
|
}:
|
2017-12-04 14:11:12 +00:00
|
|
|
|
2021-09-14 16:47:04 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-12-04 14:11:12 +00:00
|
|
|
pname = "devpi-server";
|
2023-10-13 14:00:29 +00:00
|
|
|
version = "6.9.2";
|
2023-10-13 13:58:26 +00:00
|
|
|
pyproject = true;
|
2022-10-02 10:28:46 +00:00
|
|
|
|
2023-10-13 14:00:29 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-12-04 14:11:12 +00:00
|
|
|
|
2020-10-13 22:32:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devpi";
|
|
|
|
repo = "devpi";
|
2022-10-02 10:28:46 +00:00
|
|
|
rev = "server-${version}";
|
2023-10-13 14:00:29 +00:00
|
|
|
hash = "sha256-HnxWLxOK+6B8O/7lpNjuSUQ0Z7NOmV2n01WFyjow6oU=";
|
2017-12-04 14:11:12 +00:00
|
|
|
};
|
2021-09-14 16:47:04 +00:00
|
|
|
|
2023-07-25 13:27:31 +00:00
|
|
|
sourceRoot = "${src.name}/server";
|
2017-12-04 14:11:12 +00:00
|
|
|
|
2022-11-28 03:21:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
2023-10-13 13:58:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-14 16:47:04 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-02 10:28:46 +00:00
|
|
|
aiohttp
|
2019-06-18 00:50:48 +00:00
|
|
|
appdirs
|
2020-10-13 22:32:18 +00:00
|
|
|
defusedxml
|
2022-10-02 10:28:46 +00:00
|
|
|
devpi-common
|
2019-06-18 00:50:48 +00:00
|
|
|
execnet
|
|
|
|
itsdangerous
|
2022-10-02 10:28:46 +00:00
|
|
|
packaging
|
2019-06-18 00:50:48 +00:00
|
|
|
passlib
|
2022-10-02 10:28:46 +00:00
|
|
|
platformdirs
|
2019-06-18 00:50:48 +00:00
|
|
|
pluggy
|
|
|
|
pyramid
|
2023-11-11 08:21:17 +00:00
|
|
|
repoze-lru
|
2022-10-02 10:28:46 +00:00
|
|
|
setuptools
|
2019-06-18 00:50:48 +00:00
|
|
|
strictyaml
|
|
|
|
waitress
|
2022-05-22 14:26:11 +00:00
|
|
|
] ++ passlib.optional-dependencies.argon2;
|
2019-06-18 00:50:48 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2019-06-18 00:50:48 +00:00
|
|
|
beautifulsoup4
|
|
|
|
nginx
|
2022-12-30 16:24:44 +00:00
|
|
|
py
|
2022-10-02 10:28:46 +00:00
|
|
|
pytestCheckHook
|
2019-06-18 00:50:48 +00:00
|
|
|
webtest
|
2022-10-02 10:28:46 +00:00
|
|
|
];
|
2019-06-18 00:50:48 +00:00
|
|
|
|
2019-12-23 17:19:00 +00:00
|
|
|
# root_passwd_hash tries to write to store
|
2020-06-03 06:31:39 +00:00
|
|
|
# TestMirrorIndexThings tries to write to /var through ngnix
|
|
|
|
# nginx tests try to write to /var
|
2020-12-11 14:23:40 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
export HOME=$TMPDIR
|
2017-12-04 14:11:12 +00:00
|
|
|
'';
|
2020-12-11 14:23:40 +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"
|
2023-10-13 14:28:24 +00:00
|
|
|
"test_auth_mirror_url_no_hash"
|
|
|
|
"test_auth_mirror_url_with_hash"
|
|
|
|
"test_auth_mirror_url_hidden_in_logs"
|
2020-12-11 14:23:40 +00:00
|
|
|
];
|
2017-12-04 14:11:12 +00:00
|
|
|
|
2021-05-25 21:01:46 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-10-13 13:58:26 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"devpi_server"
|
|
|
|
];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib;{
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://doc.devpi.net";
|
2017-12-04 14:11:12 +00:00
|
|
|
description = "Github-style pypi index server and packaging meta tool";
|
2023-10-13 13:58:26 +00:00
|
|
|
changelog = "https://github.com/devpi/devpi/blob/${src.rev}/server/CHANGELOG";
|
2017-12-04 14:11:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|