depot/third_party/nixpkgs/pkgs/development/python-modules/magicgui/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

42 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, pytest-mypy-plugins
, typing-extensions
, qtpy
, pyside2
, psygnal
, docstring-parser
, napari # a reverse-dependency, for tests
}: buildPythonPackage rec {
pname = "magicgui";
version = "0.3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "napari";
repo = "magicgui";
rev = "v${version}";
sha256 = "sha256-LYXNNr5lS3ibQk2NIopZkB8kzC7j3yY8moGMk0Gr+hU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ typing-extensions qtpy pyside2 psygnal docstring-parser ];
checkInputs = [ pytestCheckHook pytest-mypy-plugins ];
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 ];
};
}