2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
pint,
|
|
|
|
pygments,
|
|
|
|
pyqt5,
|
|
|
|
pyqt6,
|
|
|
|
pyside2,
|
|
|
|
pyside6,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
qtpy,
|
|
|
|
typing-extensions,
|
2022-04-15 01:41:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-03 16:56:52 +00:00
|
|
|
pname = "superqt";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.6.7";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-05-15 15:35:15 +00:00
|
|
|
owner = "pyapp-kit";
|
|
|
|
repo = "superqt";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-/VR9Lc1x+7J/3zyo/eBFBvGkPXzpTfPpNAvNhSzWio8=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
|
|
|
pygments
|
2022-08-21 13:32:41 +00:00
|
|
|
pyqt5
|
|
|
|
qtpy
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-05-15 15:35:15 +00:00
|
|
|
quantity = [ pint ];
|
|
|
|
pyside2 = [ pyside2 ];
|
|
|
|
pyside6 = [ pyside6 ];
|
|
|
|
pyqt6 = [ pyqt6 ];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# Segmentation fault
|
|
|
|
doCheck = false;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# Segmentation fault
|
|
|
|
# pythonImportsCheck = [ "superqt" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Missing widgets and components for Qt-python (napari/superqt)";
|
|
|
|
homepage = "https://github.com/napari/superqt";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/pyapp-kit/superqt/releases/tag/v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|