1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-09 05:53:50 +00:00
nixpkgs/pkgs/development/tools/devpi-server/default.nix

47 lines
980 B
Nix
Raw Normal View History

2019-06-18 01:50:48 +01:00
{ stdenv, python3Packages, nginx }:
2017-12-04 14:11:12 +00:00
2019-06-18 01:50:48 +01:00
python3Packages.buildPythonApplication rec {
2017-12-04 14:11:12 +00:00
name = "${pname}-${version}";
pname = "devpi-server";
2019-06-18 01:50:48 +01:00
version = "4.9.0";
2017-12-04 14:11:12 +00:00
2019-06-18 01:50:48 +01:00
src = python3Packages.fetchPypi {
2017-12-04 14:11:12 +00:00
inherit pname version;
2019-06-18 01:50:48 +01:00
sha256 = "0cx0nv1qqv8lg6p1v8dv5val0dxnc3229c15imibl9wrhrffjbg9";
2017-12-04 14:11:12 +00:00
};
2019-06-18 01:50:48 +01:00
propagatedBuildInputs = with python3Packages; [
appdirs
devpi-common
execnet
itsdangerous
passlib
pluggy
pyramid
strictyaml
waitress
];
checkInputs = with python3Packages; [
beautifulsoup4
mock
nginx
pytest
pytest-flakes
pytestpep8
webtest
];
# test_genconfig.py needs devpi-server on PATH
2017-12-04 14:11:12 +00:00
checkPhase = ''
2019-06-18 01:50:48 +01: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 ];
};
}