summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/spectral-cube/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/spectral-cube/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/spectral-cube/default.nix')
-rw-r--r--pkgs/development/python-modules/spectral-cube/default.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix
index d2f79c183480..329b225b5769 100644
--- a/pkgs/development/python-modules/spectral-cube/default.nix
+++ b/pkgs/development/python-modules/spectral-cube/default.nix
@@ -1,11 +1,12 @@
{ lib
, fetchPypi
+, fetchpatch
, buildPythonPackage
, aplpy
, joblib
, astropy
, radio_beam
-, pytest
+, pytestCheckHook
, pytest-astropy
, astropy-helpers
}:
@@ -20,13 +21,18 @@ buildPythonPackage rec {
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
};
+ patches = [
+ # Fix compatibility with radio_beam >= 0.3.3. Will be included
+ # in the next release of spectral cube > 0.5.0
+ (fetchpatch {
+ url = "https://github.com/radio-astro-tools/spectral-cube/commit/bbe4295ebef7dfa6fe4474275a29acd6cb0cb544.patch";
+ sha256 = "1qddfm3364kc34yf6wd9nd6rxh4qc2v5pqilvz9adwb4a50z28bf";
+ })
+ ];
+
nativeBuildInputs = [ astropy-helpers ];
propagatedBuildInputs = [ astropy radio_beam joblib ];
- checkInputs = [ aplpy pytest pytest-astropy ];
-
- checkPhase = ''
- pytest spectral_cube
- '';
+ checkInputs = [ pytestCheckHook aplpy pytest-astropy ];
meta = {
description = "Library for reading and analyzing astrophysical spectral data cubes";