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
|
|
|
|
, pytestCheckHook
|
2022-08-21 13:32:41 +00:00
|
|
|
, pygments
|
2022-04-15 01:41:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "superqt";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.3.5";
|
|
|
|
format = "pyproject";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "napari";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-nKNFV/mzdugQ+UJ/qB0SkCSm5vEpvI/tgHYKJr6NEyg=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyqt5
|
|
|
|
qtpy
|
|
|
|
typing-extensions
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
doCheck = false; # Segfaults...
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "superqt" ];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|