python3Packages.radio_beam: unbreak
This commit is contained in:
parent
8fa0db7b69
commit
df52f5afb1
1 changed files with 6 additions and 14 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue