summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/radio_beam/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/radio_beam/default.nix')
-rw-r--r--pkgs/development/python-modules/radio_beam/default.nix20
1 files changed, 6 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/radio_beam/default.nix b/pkgs/development/python-modules/radio_beam/default.nix
index f1f3200bb7b0..58137e3adbdb 100644
--- a/pkgs/development/python-modules/radio_beam/default.nix
+++ b/pkgs/development/python-modules/radio_beam/default.nix
@@ -2,9 +2,8 @@
, fetchPypi
, buildPythonPackage
, astropy
-, pytest
-, pytest-astropy
-, astropy-helpers
+, pytestCheckHook
+, pytest-doctestplus
, scipy
}:
@@ -13,25 +12,18 @@ buildPythonPackage rec {
version = "0.3.3";
src = fetchPypi {
- inherit pname version;
+ inherit version;
+ pname = "radio-beam";
sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd";
};
propagatedBuildInputs = [ astropy ];
- nativeBuildInputs = [ astropy-helpers ];
-
- # Disable automatic update of the astropy-helper module
- postPatch = ''
- substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
- '';
-
- checkInputs = [ pytest pytest-astropy scipy ];
+ checkInputs = [ pytestCheckHook pytest-doctestplus scipy ];
# Tests must be run in the build directory
- checkPhase = ''
+ preCheck = ''
cd build/lib
- pytest
'';
meta = {