pythonPackages.pywebview: 3.2 -> 3.3.1

This commit is contained in:
Johannes Schleifenbaum 2020-07-01 11:52:32 +02:00 committed by Jon
parent e68db19e67
commit 8c2d5d8cce

View File

@ -1,23 +1,32 @@
{ lib, buildPythonPackage, fetchFromGitHub }: { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, importlib-resources, pytest, xvfb_run }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pywebview"; pname = "pywebview";
version = "3.2"; version = "3.3.1";
disabled = pythonOlder "3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "r0x0r"; owner = "r0x0r";
repo = "pywebview"; repo = "pywebview";
rev = version; rev = version;
sha256 = "0anwm6s0pp7xmgylr4m52v7lw825sdby7fajcl929l099n757gq7"; sha256 = "015z7n0hdgkzn0p7aw1xsv6lwc260p8q67jx0zyd1zghnwyj8k79";
}; };
# disabled due to error in loading unittest propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ importlib-resources ];
# don't know how to make test from: None
doCheck = false; checkInputs = [ pytest xvfb_run ];
checkPhase = ''
pushd tests
patchShebangs run.sh
xvfb-run -s '-screen 0 800x600x24' ./run.sh
popd
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/r0x0r/pywebview"; homepage = "https://github.com/r0x0r/pywebview";
description = "Lightweight cross-platform wrapper around a webview."; description = "Lightweight cross-platform wrapper around a webview";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ jojosch ]; maintainers = with maintainers; [ jojosch ];
}; };