python3Packages.spectral-cube: 0.4.5 -> 0.5.0
This commit is contained in:
parent
edbf7a37b1
commit
0bba94bb4c
|
@ -1,7 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, aplpy
|
, aplpy
|
||||||
|
, joblib
|
||||||
, astropy
|
, astropy
|
||||||
, radio_beam
|
, radio_beam
|
||||||
, pytest
|
, pytest
|
||||||
|
@ -11,31 +12,20 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "spectral-cube";
|
pname = "spectral-cube";
|
||||||
version = "0.4.5";
|
version = "0.5.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
# Fetch from GitHub instead of PyPi, as 0.4.5 isn't available in PyPi
|
src = fetchPypi {
|
||||||
src = fetchFromGitHub {
|
inherit pname version;
|
||||||
owner = "radio-astro-tools";
|
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
|
||||||
repo = pname;
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "1xc1m6vpl0bm600fx9vypa7zcvwg7yvhgn0w89y6v9d1vl0qcs7z";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ astropy radio_beam ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ astropy-helpers ];
|
nativeBuildInputs = [ astropy-helpers ];
|
||||||
|
propagatedBuildInputs = [ astropy radio_beam joblib ];
|
||||||
checkInputs = [ aplpy pytest pytest-astropy ];
|
checkInputs = [ aplpy pytest pytest-astropy ];
|
||||||
|
|
||||||
# Disable automatic update of the astropy-helper module
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Tests must be run in the build directory
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
cd build/lib
|
pytest spectral_cube
|
||||||
pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue