nixpkgs/pkgs/development/tools/devpi-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

101 lines
1.9 KiB
Nix
Raw Normal View History

2022-10-02 10:28:46 +00:00
{ lib, fetchFromGitHub, buildPythonApplication, isPy27
, aiohttp
, appdirs
, beautifulsoup4
, defusedxml
, devpi-common
, execnet
, itsdangerous
, nginx
, packaging
, passlib
, platformdirs
, pluggy
, py
2022-10-02 10:28:46 +00:00
, pyramid
, pytestCheckHook
, repoze_lru
, setuptools
, strictyaml
, waitress
, webtest
}:
2017-12-04 14:11:12 +00:00
buildPythonApplication rec {
2017-12-04 14:11:12 +00:00
pname = "devpi-server";
2022-10-02 10:28:46 +00:00
version = "6.7.0";
format = "setuptools";
2022-10-02 10:28:46 +00:00
disabled = isPy27;
2017-12-04 14:11:12 +00:00
src = fetchFromGitHub {
owner = "devpi";
repo = "devpi";
2022-10-02 10:28:46 +00:00
rev = "server-${version}";
hash = "sha256-tevQ/Ocusz2PythGnedP6r4xARgetVosAc8uTD49H3M=";
2017-12-04 14:11:12 +00:00
};
sourceRoot = "source/server";
2017-12-04 14:11:12 +00:00
postPatch = ''
substituteInPlace tox.ini \
--replace "--flake8" ""
'';
propagatedBuildInputs = [
2022-10-02 10:28:46 +00:00
aiohttp
2019-06-18 00:50:48 +00:00
appdirs
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
2022-10-02 10:28:46 +00:00
repoze_lru
setuptools
2019-06-18 00:50:48 +00:00
strictyaml
waitress
] ++ passlib.optional-dependencies.argon2;
2019-06-18 00:50:48 +00:00
nativeCheckInputs = [
2019-06-18 00:50:48 +00:00
beautifulsoup4
nginx
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
preCheck = ''
export PATH=$PATH:$out/bin
export HOME=$TMPDIR
2017-12-04 14:11:12 +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"
];
2017-12-04 14:11:12 +00:00
__darwinAllowLocalNetworking = true;
meta = with lib;{
homepage = "http://doc.devpi.net";
2017-12-04 14:11:12 +00:00
description = "Github-style pypi index server and packaging meta tool";
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}