python3Packages.radio_beam: unbreak
This commit is contained in:
parent
8fa0db7b69
commit
df52f5afb1
|
@ -2,9 +2,8 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, astropy
|
, astropy
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytest-astropy
|
, pytest-doctestplus
|
||||||
, astropy-helpers
|
|
||||||
, scipy
|
, scipy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -13,25 +12,18 @@ buildPythonPackage rec {
|
||||||
version = "0.3.3";
|
version = "0.3.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit version;
|
||||||
|
pname = "radio-beam";
|
||||||
sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd";
|
sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ astropy ];
|
propagatedBuildInputs = [ astropy ];
|
||||||
|
|
||||||
nativeBuildInputs = [ astropy-helpers ];
|
checkInputs = [ pytestCheckHook pytest-doctestplus scipy ];
|
||||||
|
|
||||||
# Disable automatic update of the astropy-helper module
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkInputs = [ pytest pytest-astropy scipy ];
|
|
||||||
|
|
||||||
# Tests must be run in the build directory
|
# Tests must be run in the build directory
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
cd build/lib
|
cd build/lib
|
||||||
pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue