nixpkgs/pkgs/development/python-modules/devpi-common/default.nix
2017-11-06 10:26:55 +01:00

29 lines
763 B
Nix

{ stdenv, pythonPackages }:
with pythonPackages;buildPythonPackage rec {
pname = "devpi-common";
version = "3.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "d89634a57981ed43cb5dcd25e00c9454ea111189c5ddc08d945b3d5187ada5fd";
};
propagatedBuildInputs = [ requests py ];
checkInputs = [ pytest ];
checkPhase = ''
# Don't know why this test is failing!
substituteInPlace testing/test_request.py --replace "test_env" "noop_test_env"
py.test
'';
meta = with stdenv.lib; {
homepage = https://github.com/devpi/devpi;
description = "Utilities jointly used by devpi-server and devpi-client";
license = licenses.mit;
maintainers = with maintainers; [ lewo makefu ];
};
}