2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv
|
2018-10-25 17:58:15 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
2018-12-02 13:45:42 -08:00
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2018-10-25 17:58:15 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paste";
|
2020-12-30 04:16:57 -08:00
|
|
|
version = "3.5.0";
|
2018-10-25 17:58:15 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-12-02 13:45:42 -08:00
|
|
|
pname = "Paste";
|
|
|
|
inherit version;
|
2020-12-30 04:16:57 -08:00
|
|
|
sha256 = "17f3zppjjprs2jnklvzkz23mh9jdn6b1f445mvrjdm4ivi15q28v";
|
2018-10-25 17:58:15 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2018-12-02 13:45:42 -08:00
|
|
|
checkInputs = [ pytestrunner pytest ];
|
|
|
|
|
2018-10-25 17:58:15 -07:00
|
|
|
# Certain tests require network
|
|
|
|
checkPhase = ''
|
2018-12-02 13:45:42 -08:00
|
|
|
py.test -k "not test_cgiapp and not test_proxy"
|
2018-10-25 17:58:15 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-25 17:58:15 -07:00
|
|
|
description = "Tools for using a Web Server Gateway Interface stack";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://pythonpaste.org/";
|
2018-10-25 17:58:15 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|