Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, buildPythonPackage, docstring-parser, fetchFromGitHub, hatch-vcs, hatchling, napari, # a reverse-dependency, for tests psygnal, pyside2, pyside6, pyqt6, pyqt5, pytestCheckHook, superqt, typing-extensions,}:
buildPythonPackage rec { pname = "magicgui"; version = "0.10.2"; pyproject = true;
src = fetchFromGitHub { owner = "pyapp-kit"; repo = "magicgui"; tag = "v${version}"; hash = "sha256-5etnug947C+Ewk1QLxsxEeaSa9djIlM/PGdNnJZiND8="; };
build-system = [ hatch-vcs hatchling ];
dependencies = [ typing-extensions superqt psygnal docstring-parser ];
optional-dependencies = { pyside2 = [ pyside2 ]; pyside6 = [ pyside6 ]; pyqt6 = [ pyqt6 ]; pyqt5 = [ pyqt5 ]; };
nativeCheckInputs = [ pytestCheckHook ];
doCheck = false; # Reports "Fatal Python error"
passthru.tests = { inherit napari; };
meta = { description = "Build GUIs from python functions, using magic. (napari/magicgui)"; homepage = "https://github.com/pyapp-kit/magicgui"; changelog = "https://github.com/pyapp-kit/magicgui/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ SomeoneSerge ]; };}