diff options
Diffstat (limited to 'pkgs/development/python-modules/glueviz/default.nix')
-rw-r--r-- | pkgs/development/python-modules/glueviz/default.nix | 96 |
1 files changed, 50 insertions, 46 deletions
diff --git a/pkgs/development/python-modules/glueviz/default.nix b/pkgs/development/python-modules/glueviz/default.nix index bb25d2edd3a9..4f13f73214e7 100644 --- a/pkgs/development/python-modules/glueviz/default.nix +++ b/pkgs/development/python-modules/glueviz/default.nix @@ -1,66 +1,68 @@ -{ 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 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + astropy, + dill, + echo, + fast-histogram, + h5py, + ipython, + matplotlib, + mpl-scatter-density, + numpy, + openpyxl, + pandas, + pyqt-builder, + pytestCheckHook, + qt6, + scipy, + setuptools, + setuptools-scm, + shapely, + xlrd, }: 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 = [ setuptools setuptools-scm qt6.wrapQtAppsHook ]; - propagatedBuildInputs = [ + + nativeBuildInputs = [ qt6.wrapQtAppsHook ]; + + build-system = [ + setuptools + setuptools-scm + ]; + + 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; @@ -69,10 +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[@]}") ''; |