19 buildPythonPackage rec {
24 disabled = pythonOlder "3.5";
26 src = fetchFromGitHub {
30 hash = "sha256-/jKauq+G3Nz91n/keTZGNDTaW5EhdyCx4c2Nylxqc+0=";
38 propagatedBuildInputs = [
43 ] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ];
53 # a Qt wrapper is required to run the Qt backend
54 # since the upstream script does not have a way to disable tests individually pytest is used directly instead
55 makeQtWrapper "$(command -v pytest)" tests/run.sh \
56 --set PYWEBVIEW_LOG debug \
57 --add-flags "--deselect tests/test_js_api.py::test_concurrent"
59 # HOME and XDG directories are required for the tests
62 XDG_RUNTIME_DIR=$TMPDIR/xdg-runtime-dir \
63 xvfb-run -s '-screen 0 800x600x24' tests/run.sh
66 pythonImportsCheck = [ "webview" ];
69 description = "Lightweight cross-platform wrapper around a webview";
70 homepage = "https://github.com/r0x0r/pywebview";
71 license = licenses.bsd3;
72 maintainers = with maintainers; [ jojosch ];