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";
|
2020-07-06 15:59:09 +01:00
|
|
|
version = "3.4.1";
|
2018-10-26 01:58:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-12-02 21:45:42 +00:00
|
|
|
pname = "Paste";
|
|
|
|
inherit version;
|
2020-07-06 15:59:09 +01:00
|
|
|
sha256 = "1csqn7g9b05hp3fgd82355k4pb5rv12k9x6p2mdw2v01m385171p";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://pythonpaste.org/";
|
2018-10-26 01:58:15 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|