nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools-scm
5, pyqt5
6, qtpy
7, typing-extensions
8, pytest
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "superqt";
14 version = "0.3.2";
15
16 src = fetchFromGitHub {
17 owner = "napari";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 sha256 = "sha256-P1uKQaYgXVTE7DK5w4Ct4aJyfdQ6jUPfaTOcYkpo9pc=";
21 };
22 format = "pyproject";
23 nativeBuildInputs = [ setuptools-scm ];
24 propagatedBuildInputs = [ pyqt5 qtpy typing-extensions ];
25 checkInputs = [ pytestCheckHook pytest ];
26 doCheck = false; # Segfaults...
27 SETUPTOOLS_SCM_PRETEND_VERSION = version;
28
29 meta = with lib; {
30 description = "Missing widgets and components for Qt-python (napari/superqt)";
31 homepage = "https://github.com/napari/superqt";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ SomeoneSerge ];
34 };
35}