Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / webtest / default.nix
blob52d48505df4734a0a0ba1e25b56425498252d591
1 { lib
2 , beautifulsoup4
3 , buildPythonPackage
4 , fetchPypi
5 , fetchpatch
6 , pastedeploy
7 , pyquery
8 , pytestCheckHook
9 , pythonOlder
10 , six
11 , waitress
12 , webob
13 , wsgiproxy2
16 buildPythonPackage rec {
17   pname = "webtest";
18   version = "3.0.0";
19   format = "setuptools";
21   disabled = pythonOlder "3.6";
23   src = fetchPypi {
24     pname = "WebTest";
25     inherit version;
26     hash = "sha256-VL2WlyWDjZhhqfon+Nlx950nXZSuJV9cUB9Tu22ZKes=";
27   };
29   patches = [
30     (fetchpatch {
31       # Replace deprecated unittest aliases for Python 3.12
32       name = "webtest-python312-compat.patch";
33       url = "https://github.com/Pylons/webtest/commit/d82ec5bd2cf3c7109a1d49ad9fa802ae1eae1763.patch";
34       hash = "sha256-hSwxAxAI3Eo28I8S+r2k/hFG8TlzrVYup3MuTsE+xXk=";
35     })
36   ];
38   propagatedBuildInputs = [
39     beautifulsoup4
40     six
41     waitress
42     webob
43   ];
45   nativeCheckInputs = [
46     pastedeploy
47     pyquery
48     pytestCheckHook
49     wsgiproxy2
50   ];
52   __darwinAllowLocalNetworking = true;
54   pythonImportsCheck = [
55     "webtest"
56   ];
58   meta = with lib; {
59     description = "Helper to test WSGI applications";
60     homepage = "https://webtest.readthedocs.org/";
61     license = licenses.mit;
62     maintainers = with maintainers; [ fab ];
63   };