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