2018-10-26 01:58:15 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2018-12-02 21:45:42 +00:00
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2018-10-26 01:58:15 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paste";
|
2018-12-02 21:45:42 +00:00
|
|
|
version = "3.0.5";
|
2018-10-26 01:58:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-12-02 21:45:42 +00:00
|
|
|
pname = "Paste";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "1bb2068807ce3592d313ce9b1a25a7ac842a504e7e3b005027193d17a043d1a8";
|
2018-10-26 01:58:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2018-12-02 21:45:42 +00:00
|
|
|
checkInputs = [ pytestrunner pytest ];
|
|
|
|
|
2018-10-26 01:58:15 +01:00
|
|
|
# Certain tests require network
|
|
|
|
checkPhase = ''
|
2018-12-02 21:45:42 +00:00
|
|
|
py.test -k "not test_cgiapp and not test_proxy"
|
2018-10-26 01:58:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tools for using a Web Server Gateway Interface stack";
|
|
|
|
homepage = http://pythonpaste.org/;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|