saunafs: 4.6.0 -> 4.7.0 (#379649)
[NixPkgs.git] / pkgs / development / python-modules / magicgui / default.nix
blob7ebf7e79280e9a1c740243dc7c3b2120e75a5d2e
2   lib,
3   buildPythonPackage,
4   docstring-parser,
5   fetchFromGitHub,
6   hatch-vcs,
7   hatchling,
8   napari, # a reverse-dependency, for tests
9   psygnal,
10   pyside2,
11   pytestCheckHook,
12   pythonOlder,
13   superqt,
14   typing-extensions,
17 buildPythonPackage rec {
18   pname = "magicgui";
19   version = "0.10.0";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "pyapp-kit";
26     repo = "magicgui";
27     tag = "v${version}";
28     hash = "sha256-taPnP9uB1y9hNqG/3MF3ZTc0q94+8WUx4E6+TQsJnIU=";
29   };
31   build-system = [
32     hatch-vcs
33     hatchling
34   ];
36   dependencies = [
37     typing-extensions
38     superqt
39     pyside2
40     psygnal
41     docstring-parser
42   ];
44   nativeCheckInputs = [ pytestCheckHook ];
46   doCheck = false; # Reports "Fatal Python error"
48   passthru.tests = {
49     inherit napari;
50   };
52   meta = with lib; {
53     description = "Build GUIs from python functions, using magic.  (napari/magicgui)";
54     homepage = "https://github.com/napari/magicgui";
55     changelog = "https://github.com/pyapp-kit/magicgui/blob/v${version}/CHANGELOG.md";
56     license = licenses.mit;
57     maintainers = with maintainers; [ SomeoneSerge ];
58   };