2024-07-15 11:54:42 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
numpy,
|
|
|
|
qtpy,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pyqt6,
|
|
|
|
qt6,
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pythonqwt";
|
2025-04-17 05:40:12 +00:00
|
|
|
version = "0.14.5";
|
2024-07-15 11:54:42 +03:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PlotPyStack";
|
|
|
|
repo = "PythonQwt";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2025-04-17 05:40:12 +00:00
|
|
|
hash = "sha256-VNeW5LOL/CM/RUrC5TUj6FnVlhmXaPRYjGPz8b01Tew=";
|
2024-07-15 11:54:42 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
qtpy
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
# Not propagating this, to allow one to choose to either choose a pyqt /
|
|
|
|
# pyside implementation
|
|
|
|
pyqt6
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export QT_PLUGIN_PATH="${lib.getBin qt6.qtbase}/${qt6.qtbase.qtPluginPrefix}"
|
|
|
|
export QT_QPA_PLATFORM=offscreen
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qwt" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qt plotting widgets for Python (pure Python reimplementation of Qwt C++ library)";
|
|
|
|
homepage = "https://github.com/PlotPyStack/PythonQwt";
|
2025-01-19 21:17:56 +01:00
|
|
|
changelog = "https://github.com/PlotPyStack/PythonQwt/blob/${src.tag}/CHANGELOG.md";
|
2024-07-15 11:54:42 +03:00
|
|
|
license = lib.licenses.lgpl21Only;
|
|
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|