2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
dill,
|
|
|
|
astropy,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
qt6,
|
|
|
|
pyqt6,
|
|
|
|
pyqt-builder,
|
|
|
|
qtconsole,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
scipy,
|
|
|
|
ipython,
|
|
|
|
ipykernel,
|
|
|
|
h5py,
|
|
|
|
matplotlib,
|
|
|
|
xlrd,
|
|
|
|
mpl-scatter-density,
|
|
|
|
pvextractor,
|
|
|
|
openpyxl,
|
|
|
|
echo,
|
|
|
|
pytest,
|
|
|
|
pytest-flakes,
|
|
|
|
pytest-cov,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "glueviz";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.21.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "glue-viz";
|
|
|
|
repo = "glue";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-C9UqDdhPcaznidiDlQO27Vgct2MT9gVlH740hoYg3Bc=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pyqt-builder ];
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astropy
|
|
|
|
dill
|
|
|
|
setuptools
|
|
|
|
scipy
|
|
|
|
numpy
|
|
|
|
matplotlib
|
|
|
|
pandas
|
|
|
|
pyqt6
|
|
|
|
qtconsole
|
|
|
|
ipython
|
|
|
|
ipykernel
|
|
|
|
h5py
|
|
|
|
xlrd
|
|
|
|
mpl-scatter-density
|
|
|
|
pvextractor
|
|
|
|
openpyxl
|
|
|
|
echo
|
|
|
|
];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
# collecting ... qt.qpa.xcb: could not connect to display
|
|
|
|
# qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-flakes
|
|
|
|
pytest-cov
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "glue" ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://glueviz.org";
|
|
|
|
description = "Linked Data Visualizations Across Multiple Files";
|
|
|
|
license = licenses.bsd3; # https://github.com/glue-viz/glue/blob/main/LICENSE
|
|
|
|
maintainers = with maintainers; [ ifurther ];
|
|
|
|
};
|
|
|
|
}
|