2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fetchpatch,
|
|
|
|
pastedeploy,
|
|
|
|
pyquery,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
six,
|
|
|
|
waitress,
|
|
|
|
webob,
|
|
|
|
wsgiproxy2,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# Replace deprecated unittest aliases for Python 3.12
|
|
|
|
name = "webtest-python312-compat.patch";
|
|
|
|
url = "https://github.com/Pylons/webtest/commit/d82ec5bd2cf3c7109a1d49ad9fa802ae1eae1763.patch";
|
|
|
|
hash = "sha256-hSwxAxAI3Eo28I8S+r2k/hFG8TlzrVYup3MuTsE+xXk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|