2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools-scm
|
|
|
|
, pyqt5
|
2022-04-15 01:41:22 +00:00
|
|
|
, qtpy
|
2022-01-03 16:56:52 +00:00
|
|
|
, typing-extensions
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
2022-04-15 01:41:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "superqt";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.3.1";
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napari";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-DPjJxOgybNvZ3YvYHr48fmx59Puck61Dzm2G4M9qKo4=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-04-15 01:41:22 +00:00
|
|
|
propagatedBuildInputs = [ pyqt5 qtpy typing-extensions ];
|
2022-01-03 16:56:52 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|