2021-12-19 04:59:15 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-12-20 23:09:35 +01:00
|
|
|
, setuptools-scm
|
2021-12-19 04:59:15 +01:00
|
|
|
, pyqt5
|
2022-03-10 00:31:58 +01:00
|
|
|
, qtpy
|
2021-12-19 04:59:15 +01:00
|
|
|
, typing-extensions
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
2022-03-10 00:31:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-19 04:59:15 +01:00
|
|
|
pname = "superqt";
|
2022-05-04 04:04:28 +02:00
|
|
|
version = "0.3.2";
|
2022-03-10 00:31:58 +01:00
|
|
|
|
2021-12-19 04:59:15 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napari";
|
|
|
|
repo = pname;
|
2022-05-04 04:04:28 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-P1uKQaYgXVTE7DK5w4Ct4aJyfdQ6jUPfaTOcYkpo9pc=";
|
2021-12-19 04:59:15 +01:00
|
|
|
};
|
|
|
|
format = "pyproject";
|
2021-12-20 23:09:35 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-03-10 00:31:58 +01:00
|
|
|
propagatedBuildInputs = [ pyqt5 qtpy typing-extensions ];
|
2021-12-19 04:59:15 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|