about summary refs log tree commit diff
path: root/pkgs/development/python-modules/superqt/default.nix
blob: af600f623423c3220cb54b419a26a4c3b382c744 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pyqt5
, qtpy
, typing-extensions
, pytest
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "superqt";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "napari";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-DPjJxOgybNvZ3YvYHr48fmx59Puck61Dzm2G4M9qKo4=";
  };
  format = "pyproject";
  nativeBuildInputs = [ setuptools-scm ];
  propagatedBuildInputs = [ pyqt5 qtpy typing-extensions ];
  checkInputs = [ pytestCheckHook pytest ];
  doCheck = false; # Segfaults...
  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  meta = with lib; {
    description = "Missing widgets and components for Qt-python (napari/superqt)";
    homepage = "https://github.com/napari/superqt";
    license = licenses.bsd3;
    maintainers = with maintainers; [ SomeoneSerge ];
  };
}