2023-10-19 13:55:26 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication
|
|
|
|
, pythonOlder
|
2022-10-06 18:32:54 +00:00
|
|
|
, aiohttp
|
|
|
|
, appdirs
|
|
|
|
, beautifulsoup4
|
|
|
|
, defusedxml
|
|
|
|
, devpi-common
|
|
|
|
, execnet
|
|
|
|
, itsdangerous
|
|
|
|
, nginx
|
|
|
|
, packaging
|
|
|
|
, passlib
|
|
|
|
, platformdirs
|
|
|
|
, pluggy
|
2023-01-20 10:41:00 +00:00
|
|
|
, py
|
2024-04-21 15:54:59 +00:00
|
|
|
, httpx
|
2022-10-06 18:32:54 +00:00
|
|
|
, pyramid
|
|
|
|
, pytestCheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
, repoze-lru
|
2022-10-06 18:32:54 +00:00
|
|
|
, setuptools
|
|
|
|
, strictyaml
|
|
|
|
, waitress
|
|
|
|
, webtest
|
2024-02-07 01:22:34 +00:00
|
|
|
, testers
|
|
|
|
, devpi-server
|
2024-05-15 15:35:15 +00:00
|
|
|
, nixosTests
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "6.10.0";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-JqYWWItdAgtUtiYSqxUd40tT7ON4oHiDA4/3Uhb01b8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/server";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
2024-01-13 08:15:51 +00:00
|
|
|
repoze-lru
|
2022-10-06 18:32:54 +00:00
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
strictyaml
|
|
|
|
waitress
|
2024-02-07 01:22:34 +00:00
|
|
|
py
|
2024-04-21 15:54:59 +00:00
|
|
|
httpx
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ passlib.optional-dependencies.argon2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
beautifulsoup4
|
|
|
|
nginx
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
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"
|
|
|
|
"-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-19 13:55:26 +00:00
|
|
|
"test_auth_mirror_url_no_hash"
|
|
|
|
"test_auth_mirror_url_with_hash"
|
|
|
|
"test_auth_mirror_url_hidden_in_logs"
|
2024-04-21 15:54:59 +00:00
|
|
|
"test_simplelinks_timeout"
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"devpi_server"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.tests = {
|
|
|
|
devpi-server = nixosTests.devpi-server;
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = devpi-server;
|
|
|
|
};
|
2024-02-07 01:22:34 +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";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/devpi/devpi/blob/${src.rev}/server/CHANGELOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|