2018-10-29 14:41:47 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, webob
|
|
|
|
, six
|
|
|
|
, beautifulsoup4
|
|
|
|
, waitress
|
|
|
|
, mock
|
|
|
|
, pyquery
|
|
|
|
, wsgiproxy2
|
|
|
|
, PasteDeploy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-04 11:35:21 +01:00
|
|
|
version = "2.0.32";
|
2018-10-29 14:41:47 +01:00
|
|
|
pname = "webtest";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-12-03 11:30:07 +01:00
|
|
|
pname = "WebTest";
|
|
|
|
inherit version;
|
2018-11-04 11:35:21 +01:00
|
|
|
sha256 = "4221020d502ff414c5fba83c1213985b83219cb1cc611fe58aa4feaf96b5e062";
|
2018-10-29 14:41:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py --replace "nose<1.3.0" "nose"
|
|
|
|
'';
|
|
|
|
|
2018-12-03 11:30:07 +01:00
|
|
|
propagatedBuildInputs = [ webob six beautifulsoup4 waitress ];
|
|
|
|
|
|
|
|
checkInputs = [ nose mock PasteDeploy wsgiproxy2 pyquery ];
|
2018-10-29 14:41:47 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Helper to test WSGI applications";
|
2019-04-22 10:24:21 +02:00
|
|
|
homepage = https://webtest.readthedocs.org/en/latest/;
|
2018-10-29 14:41:47 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|