2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-runner
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paste";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "3.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Paste";
|
|
|
|
inherit version;
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "17f3zppjjprs2jnklvzkz23mh9jdn6b1f445mvrjdm4ivi15q28v";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest-runner pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Certain tests require network
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -k "not test_cgiapp and not test_proxy"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for using a Web Server Gateway Interface stack";
|
|
|
|
homepage = "http://pythonpaste.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|