2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
astropy,
|
2024-07-31 10:19:44 +00:00
|
|
|
dill,
|
|
|
|
echo,
|
|
|
|
fast-histogram,
|
|
|
|
h5py,
|
|
|
|
ipython,
|
|
|
|
matplotlib,
|
|
|
|
mpl-scatter-density,
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy,
|
2024-07-31 10:19:44 +00:00
|
|
|
openpyxl,
|
2024-06-05 15:53:02 +00:00
|
|
|
pandas,
|
|
|
|
pyqt-builder,
|
2024-07-31 10:19:44 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
qt6,
|
|
|
|
scipy,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2024-07-31 10:19:44 +00:00
|
|
|
shapely,
|
2024-06-05 15:53:02 +00:00
|
|
|
xlrd,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "glueviz";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "1.21.1";
|
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "glue-viz";
|
|
|
|
repo = "glue";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-/awIgfKbDFKM2WFlfpo5f/Px/N1aMXkV9eSTXts0aGo=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pyqt-builder ];
|
2024-07-31 10:19:44 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
|
|
|
|
|
|
|
|
build-system = [
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2024-07-31 10:19:44 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
astropy
|
|
|
|
dill
|
2024-07-31 10:19:44 +00:00
|
|
|
echo
|
|
|
|
fast-histogram
|
2024-01-02 11:29:13 +00:00
|
|
|
h5py
|
2024-07-31 10:19:44 +00:00
|
|
|
ipython
|
|
|
|
matplotlib
|
2024-01-02 11:29:13 +00:00
|
|
|
mpl-scatter-density
|
2024-07-31 10:19:44 +00:00
|
|
|
numpy
|
2024-01-02 11:29:13 +00:00
|
|
|
openpyxl
|
2024-07-31 10:19:44 +00:00
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
setuptools
|
|
|
|
shapely
|
|
|
|
xlrd
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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-07-31 10:19:44 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "glue" ];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|