3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #169318 from fabaff/pywebview-fix

python3Packages.pywebview: 3.6.1 -> 3.6.3
This commit is contained in:
Fabian Affolter 2022-04-21 08:01:00 +02:00 committed by GitHub
commit 592db127b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};