2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, beautifulsoup4
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-06-16 17:23:12 +00:00
|
|
|
, pastedeploy
|
|
|
|
, pyquery
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
, waitress
|
2022-06-16 17:23:12 +00:00
|
|
|
, webob
|
2020-04-24 23:36:52 +00:00
|
|
|
, wsgiproxy2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "webtest";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "WebTest";
|
|
|
|
inherit version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-VL2WlyWDjZhhqfon+Nlx950nXZSuJV9cUB9Tu22ZKes=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
2022-06-16 17:23:12 +00:00
|
|
|
six
|
2021-08-22 07:53:02 +00:00
|
|
|
waitress
|
2022-06-16 17:23:12 +00:00
|
|
|
webob
|
2021-08-22 07:53:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-10-08 15:17:17 +00:00
|
|
|
pastedeploy
|
2021-08-22 07:53:02 +00:00
|
|
|
pyquery
|
2022-06-16 17:23:12 +00:00
|
|
|
pytestCheckHook
|
|
|
|
wsgiproxy2
|
2021-08-22 07:53:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"webtest"
|
|
|
|
];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Helper to test WSGI applications";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://webtest.readthedocs.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|