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

55 lines
1.4 KiB
Nix
Raw Normal View History

2019-09-03 05:00:00 +02:00
{ stdenv, python3Packages, nginx }:
2017-12-04 15:11:12 +01:00
2019-06-18 02:50:48 +02:00
python3Packages.buildPythonApplication rec {
2017-12-04 15:11:12 +01:00
pname = "devpi-server";
2020-06-03 08:31:39 +02:00
version = "5.5.0";
2017-12-04 15:11:12 +01:00
2019-06-18 02:50:48 +02:00
src = python3Packages.fetchPypi {
2017-12-04 15:11:12 +01:00
inherit pname version;
2020-06-03 08:31:39 +02:00
sha256 = "0lily4a0k13bygx07x2f2q4nkwny0fj34hpac9i6mc70ysdn1hhi";
2017-12-04 15:11:12 +01:00
};
2019-06-18 02:50:48 +02:00
propagatedBuildInputs = with python3Packages; [
2019-09-03 05:00:00 +02:00
py
2019-06-18 02:50:48 +02:00
appdirs
devpi-common
execnet
itsdangerous
2019-09-03 05:00:00 +02:00
repoze_lru
2019-06-18 02:50:48 +02:00
passlib
pluggy
pyramid
strictyaml
waitress
];
checkInputs = with python3Packages; [
beautifulsoup4
nginx
pytest
2019-09-03 05:00:00 +02:00
pytest-flake8
2019-06-18 02:50:48 +02:00
pytestpep8
webtest
2019-09-03 05:00:00 +02:00
] ++ stdenv.lib.optionals isPy27 [ mock ];
2019-06-18 02:50:48 +02:00
2019-12-23 18:19:00 +01:00
# root_passwd_hash tries to write to store
2020-06-03 08:31:39 +02:00
# TestMirrorIndexThings tries to write to /var through ngnix
# nginx tests try to write to /var
2017-12-04 15:11:12 +01:00
checkPhase = ''
2019-12-23 18:19:00 +01:00
PATH=$PATH:$out/bin HOME=$TMPDIR pytest \
./test_devpi_server --slow -rfsxX \
2020-06-03 08:31:39 +02:00
--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 \
-k 'not root_passwd_hash_option \
and not TestMirrorIndexThings'
2017-12-04 15:11:12 +01:00
'';
meta = with stdenv.lib;{
homepage = "http://doc.devpi.net";
2017-12-04 15:11:12 +01:00
description = "Github-style pypi index server and packaging meta tool";
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}