depot/third_party/nixpkgs/pkgs/development/python-modules/magicgui/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

41 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, typing-extensions
, qtpy
, pyside2
, psygnal
, docstring-parser
, napari # a reverse-dependency, for tests
}: buildPythonPackage rec {
pname = "magicgui";
version = "0.5.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "napari";
repo = "magicgui";
rev = "refs/tags/v${version}";
hash = "sha256-fVfBQaaT8/lUGqZRXjOPgvkC01Izb8Sxqn7RCqnW9bo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ typing-extensions qtpy pyside2 psygnal docstring-parser ];
nativeCheckInputs = [ pytestCheckHook ];
doCheck = false; # Reports "Fatal Python error"
passthru.tests = { inherit napari; };
meta = with lib; {
description = "Build GUIs from python functions, using magic. (napari/magicgui)";
homepage = "https://github.com/napari/magicgui";
license = licenses.mit;
maintainers = with maintainers; [ SomeoneSerge ];
};
}