16 buildPythonPackage rec {
19 format = "setuptools";
21 disabled = pythonOlder "3.5";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-RRq6b0hqAzig/WwFK0VsrhHO6ar8HhMdAEIosPPNUQg=";
34 propagatedBuildInputs = [
38 ] ++ lib.optionals (pythonOlder "3.7") [
50 # Cannot create directory /homeless-shelter/.... Error: FILE_ERROR_ACCESS_DENIED
52 # QStandardPaths: XDG_RUNTIME_DIR not set
53 export XDG_RUNTIME_DIR=$HOME/xdg-runtime-dir
56 substituteInPlace run.sh \
57 --replace "PYTHONPATH=.." "PYTHONPATH=$PYTHONPATH" \
58 --replace "pywebviewtest test_js_api.py::test_concurrent ''${PYTEST_OPTIONS}" "# skip flaky test_js_api.py::test_concurrent"
63 xvfb-run -s '-screen 0 800x600x24' ./run.sh
67 pythonImportsCheck = [
72 description = "Lightweight cross-platform wrapper around a webview";
73 homepage = "https://github.com/r0x0r/pywebview";
74 license = licenses.bsd3;
75 maintainers = with maintainers; [ jojosch ];