python3Packages.radio_beam: unbreak

This commit is contained in:
Robert T. McGibbon 2021-04-27 10:05:07 -04:00
parent 8fa0db7b69
commit df52f5afb1

View file

@ -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 = {