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

47 lines
1012 B
Nix
Raw Normal View History

2019-09-03 03:00:00 +00:00
{ stdenv, python3Packages, nginx }:
2017-12-04 14:11:12 +00:00
2019-06-18 00:50:48 +00:00
python3Packages.buildPythonApplication rec {
2017-12-04 14:11:12 +00:00
pname = "devpi-server";
2019-09-03 03:00:00 +00:00
version = "5.1.0";
2017-12-04 14:11:12 +00:00
2019-06-18 00:50:48 +00:00
src = python3Packages.fetchPypi {
2017-12-04 14:11:12 +00:00
inherit pname version;
2019-09-03 03:00:00 +00:00
sha256 = "254fceee846532a5fec4e6bf52a59eb8f236efc657678a542b5200da4bb3abbc";
2017-12-04 14:11:12 +00:00
};
2019-06-18 00:50:48 +00:00
propagatedBuildInputs = with python3Packages; [
2019-09-03 03:00:00 +00:00
py
2019-06-18 00:50:48 +00:00
appdirs
devpi-common
execnet
itsdangerous
2019-09-03 03:00:00 +00:00
repoze_lru
2019-06-18 00:50:48 +00:00
passlib
pluggy
pyramid
strictyaml
waitress
];
checkInputs = with python3Packages; [
beautifulsoup4
nginx
pytest
2019-09-03 03:00:00 +00:00
pytest-flake8
2019-06-18 00:50:48 +00:00
pytestpep8
webtest
2019-09-03 03:00:00 +00:00
] ++ stdenv.lib.optionals isPy27 [ mock ];
2019-06-18 00:50:48 +00:00
# test_genconfig.py needs devpi-server on PATH
2017-12-04 14:11:12 +00:00
checkPhase = ''
2019-06-18 00:50:48 +00:00
PATH=$PATH:$out/bin pytest ./test_devpi_server --slow -rfsxX
2017-12-04 14:11:12 +00:00
'';
meta = with stdenv.lib;{
homepage = http://doc.devpi.net;
description = "Github-style pypi index server and packaging meta tool";
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}