1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/development/tools/devpi-server/default.nix

28 lines
874 B
Nix
Raw Normal View History

2017-12-04 14:11:12 +00:00
{ stdenv, pythonPackages, glibcLocales, nginx }:
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
pname = "devpi-server";
version = "4.3.1";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0x6ks2sbpknznxaqlh0gf5hcvhkmgixixq2zs91wgfqxk4vi4s6n";
};
propagatedBuildInputs = with pythonPackages;
[ devpi-common execnet itsdangerous pluggy waitress pyramid passlib ];
checkInputs = with pythonPackages; [ nginx webtest pytest beautifulsoup4 pytest-timeout pytest-catchlog mock pyyaml ];
checkPhase = ''
cd test_devpi_server/
PATH=$PATH:$out/bin pytest --slow -rfsxX
'';
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 ];
};
}