emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / zope-testbrowser / default.nix
blob058001e148e374af19ca3fc0e33429db27cda787
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   zope-interface,
7   zope-schema,
8   zope-cachedescriptors,
9   pytz,
10   webtest,
11   beautifulsoup4,
12   soupsieve,
13   wsgiproxy2,
14   mock,
15   zope-testing,
16   zope-testrunner,
17   python,
20 buildPythonPackage rec {
21   pname = "zope-testbrowser";
22   version = "7.0";
23   pyproject = true;
25   src = fetchFromGitHub {
26     owner = "zopefoundation";
27     repo = "zope.testbrowser";
28     tag = version;
29     hash = "sha256-vGx2ObHgt4hSQe/JKZkD2/GhdtbJEAfggkM209maen4=";
30   };
32   postPatch = ''
33     # remove test that requires network access
34     substituteInPlace src/zope/testbrowser/tests/test_doctests.py \
35       --replace-fail "suite.addTests(wire)" ""
36   '';
38   build-system = [ setuptools ];
40   dependencies = [
41     setuptools
42     zope-interface
43     zope-schema
44     zope-cachedescriptors
45     pytz
46     webtest
47     beautifulsoup4
48     soupsieve
49     wsgiproxy2
50   ];
52   nativeCheckInputs = [
53     mock
54     zope-testing
55     zope-testrunner
56   ];
58   checkPhase = ''
59     ${python.interpreter} -m zope.testrunner --test-path=src
60   '';
62   pythonImportsCheck = [
63     "zope.testbrowser"
64     "zope.testbrowser.browser"
65     "zope.testbrowser.interfaces"
66     "zope.testbrowser.testing"
67     "zope.testbrowser.wsgi"
68   ];
70   meta = {
71     changelog = "https://github.com/zopefoundation/zope.testbrowser/blob/${src.rev}/CHANGES.rst";
72     description = "Programmable browser for functional black-box tests";
73     homepage = "https://github.com/zopefoundation/zope.testbrowser";
74     license = lib.licenses.zpl21;
75     maintainers = with lib.maintainers; [ dotlambda ];
76   };