3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.magicgui: init at 0.3.0

This commit is contained in:
Someone Serge 2021-12-19 06:14:08 +02:00
parent 9b14333213
commit 3fa7d0a2d2
No known key found for this signature in database
GPG key ID: A39079F4AE78D20D
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ 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 ];
};
}

View file

@ -4733,6 +4733,8 @@ in {
magic = callPackage ../development/python-modules/magic { };
magicgui = callPackage ../development/python-modules/magicgui { };
magic-wormhole = callPackage ../development/python-modules/magic-wormhole { };
magic-wormhole-mailbox-server = callPackage ../development/python-modules/magic-wormhole-mailbox-server { };