nixpkgs/pkgs/development/python-modules/magicgui/default.nix
2021-12-31 18:24:13 +02:00

34 lines
939 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, pytest-mypy-plugins
, typing-extensions
, qtpy
, pyside2
, psygnal
, docstring-parser
}: buildPythonPackage rec {
pname = "magicgui";
version = "0.3.0";
src = fetchFromGitHub {
owner = "napari";
repo = "magicgui";
rev = "v${version}";
sha256 = "sha256-DvL1szk2RoCrpisjp0BVNL6qFZtYc2oYDenX59Cxbug=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ typing-extensions qtpy pyside2 psygnal docstring-parser ];
checkInputs = [ pytestCheckHook pytest-mypy-plugins ];
doCheck = false; # Reports "Fatal Python error"
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}