2018-05-28 10:38:44 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2019-07-23 10:27:29 +00:00
|
|
|
, astropy
|
|
|
|
, pytest
|
|
|
|
, pytest-astropy
|
|
|
|
, astropy-helpers
|
|
|
|
, scipy
|
|
|
|
}:
|
2018-05-28 10:38:44 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "radio_beam";
|
2019-09-28 21:32:08 +00:00
|
|
|
version = "0.3.2";
|
2018-05-28 10:38:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 21:32:08 +00:00
|
|
|
sha256 = "0g1nqiikv023ab60gfqrvc13kfjv8m70bpfk264vlliaq6mvxdf2";
|
2018-05-28 10:38:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ astropy ];
|
|
|
|
|
2019-07-23 10:27:29 +00:00
|
|
|
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 ];
|
|
|
|
|
|
|
|
# Tests must be run in the build directory
|
|
|
|
checkPhase = ''
|
|
|
|
cd build/lib
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2018-05-28 10:38:44 +00:00
|
|
|
meta = {
|
|
|
|
description = "Tools for Beam IO and Manipulation";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://radio-astro-tools.github.io";
|
2018-05-28 10:38:44 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|