mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 11:56:33 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
bottle,
|
|
proxy-tools,
|
|
pyside6,
|
|
qtpy,
|
|
six,
|
|
typing-extensions,
|
|
stdenv,
|
|
pyobjc-core,
|
|
pyobjc-framework-Cocoa,
|
|
pyobjc-framework-Quartz,
|
|
pyobjc-framework-Security,
|
|
pyobjc-framework-WebKit,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pywebview";
|
|
version = "6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "r0x0r";
|
|
repo = "pywebview";
|
|
tag = version;
|
|
hash = "sha256-vqdJRxZbHNu2Sq318RnJjzDjYRRCSiO72WM+flKwW7g=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
bottle
|
|
pyside6
|
|
proxy-tools
|
|
qtpy
|
|
six
|
|
typing-extensions
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
pyobjc-core
|
|
pyobjc-framework-Cocoa
|
|
pyobjc-framework-Quartz
|
|
pyobjc-framework-Security
|
|
pyobjc-framework-WebKit
|
|
];
|
|
|
|
pythonImportsCheck = [ "webview" ];
|
|
|
|
meta = {
|
|
description = "Lightweight cross-platform wrapper around a webview";
|
|
homepage = "https://github.com/r0x0r/pywebview";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ jojosch ];
|
|
};
|
|
}
|