about summary refs log tree commit diff
path: root/pkgs/development/python-modules/glueviz
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/glueviz')
-rw-r--r--pkgs/development/python-modules/glueviz/default.nix75
1 files changed, 35 insertions, 40 deletions
diff --git a/pkgs/development/python-modules/glueviz/default.nix b/pkgs/development/python-modules/glueviz/default.nix
index 98a8248333a67..4f13f73214e73 100644
--- a/pkgs/development/python-modules/glueviz/default.nix
+++ b/pkgs/development/python-modules/glueviz/default.nix
@@ -3,69 +3,66 @@
   buildPythonPackage,
   fetchFromGitHub,
   pythonOlder,
-  dill,
   astropy,
+  dill,
+  echo,
+  fast-histogram,
+  h5py,
+  ipython,
+  matplotlib,
+  mpl-scatter-density,
   numpy,
+  openpyxl,
   pandas,
-  qt6,
-  pyqt6,
   pyqt-builder,
-  qtconsole,
+  pytestCheckHook,
+  qt6,
+  scipy,
   setuptools,
   setuptools-scm,
-  scipy,
-  ipython,
-  ipykernel,
-  h5py,
-  matplotlib,
+  shapely,
   xlrd,
-  mpl-scatter-density,
-  pvextractor,
-  openpyxl,
-  echo,
-  pytest,
-  pytest-flakes,
-  pytest-cov,
 }:
 
 buildPythonPackage rec {
   pname = "glueviz";
-  version = "1.17.1";
-  format = "setuptools";
+  version = "1.21.1";
+  pyproject = true;
 
-  disabled = pythonOlder "3.7";
+  disabled = pythonOlder "3.8";
 
   src = fetchFromGitHub {
     owner = "glue-viz";
     repo = "glue";
     rev = "refs/tags/v${version}";
-    sha256 = "sha256-nr84GJAGnpKzjZEFNsQujPysSQENwGxdNfPIYUCJkK4=";
+    hash = "sha256-/awIgfKbDFKM2WFlfpo5f/Px/N1aMXkV9eSTXts0aGo=";
   };
 
   buildInputs = [ pyqt-builder ];
-  nativeBuildInputs = [
+
+  nativeBuildInputs = [ qt6.wrapQtAppsHook ];
+
+  build-system = [
     setuptools
     setuptools-scm
-    qt6.wrapQtAppsHook
   ];
-  propagatedBuildInputs = [
+
+  dependencies = [
     astropy
     dill
-    setuptools
-    scipy
-    numpy
-    matplotlib
-    pandas
-    pyqt6
-    qtconsole
-    ipython
-    ipykernel
+    echo
+    fast-histogram
     h5py
-    xlrd
+    ipython
+    matplotlib
     mpl-scatter-density
-    pvextractor
+    numpy
     openpyxl
-    echo
+    pandas
+    scipy
+    setuptools
+    shapely
+    xlrd
   ];
 
   dontConfigure = true;
@@ -74,14 +71,12 @@ buildPythonPackage rec {
   # qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
   doCheck = false;
 
-  nativeCheckInputs = [
-    pytest
-    pytest-flakes
-    pytest-cov
-  ];
+  nativeCheckInputs = [ pytestCheckHook ];
 
   pythonImportsCheck = [ "glue" ];
 
+  dontWrapQtApps = true;
+
   preFixup = ''
     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
   '';