|
|
|
@ -2,24 +2,29 @@ |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, fetchFromGitHub |
|
|
|
|
, importlib-resources |
|
|
|
|
, proxy_tools |
|
|
|
|
, pygobject3 |
|
|
|
|
, pyqtwebengine |
|
|
|
|
, pytest |
|
|
|
|
, pythonOlder |
|
|
|
|
, qt5 |
|
|
|
|
, qtpy |
|
|
|
|
, six |
|
|
|
|
, xvfb-run |
|
|
|
|
, proxy_tools |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "pywebview"; |
|
|
|
|
version = "3.6.1"; |
|
|
|
|
version = "3.6.3"; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "r0x0r"; |
|
|
|
|
repo = "pywebview"; |
|
|
|
|
rev = version; |
|
|
|
|
sha256 = "sha256-9o9ghqvU9Hnmf2aj/BqX7WBgS9ilRSnicR+qd25OfjI="; |
|
|
|
|
hash = "sha256-qOLK4MHdpmcCazCNfojncD8XH7OJB2H/pIW5XAJAlDo="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ |
|
|
|
@ -29,10 +34,15 @@ buildPythonPackage rec { |
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
pyqtwebengine |
|
|
|
|
proxy_tools |
|
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ]; |
|
|
|
|
six |
|
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [ |
|
|
|
|
importlib-resources |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
pygobject3 |
|
|
|
|
pytest |
|
|
|
|
qtpy |
|
|
|
|
xvfb-run |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
@ -54,11 +64,13 @@ buildPythonPackage rec { |
|
|
|
|
popd |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "webview" ]; |
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"webview" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
homepage = "https://github.com/r0x0r/pywebview"; |
|
|
|
|
description = "Lightweight cross-platform wrapper around a webview"; |
|
|
|
|
homepage = "https://github.com/r0x0r/pywebview"; |
|
|
|
|
license = licenses.bsd3; |
|
|
|
|
maintainers = with maintainers; [ jojosch ]; |
|
|
|
|
}; |
|
|
|
|