2018-05-28 11:38:44 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2019-07-23 11:27:29 +01:00
|
|
|
, astropy
|
2021-04-27 15:05:07 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-doctestplus
|
2019-07-23 11:27:29 +01:00
|
|
|
, scipy
|
|
|
|
}:
|
2018-05-28 11:38:44 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "radio_beam";
|
2021-03-24 09:28:26 +00:00
|
|
|
version = "0.3.3";
|
2018-05-28 11:38:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-04-27 15:05:07 +01:00
|
|
|
inherit version;
|
|
|
|
pname = "radio-beam";
|
2021-03-24 09:28:26 +00:00
|
|
|
sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd";
|
2018-05-28 11:38:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ astropy ];
|
|
|
|
|
2021-04-27 15:05:07 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytest-doctestplus scipy ];
|
2019-07-23 11:27:29 +01:00
|
|
|
|
|
|
|
# Tests must be run in the build directory
|
2021-04-27 15:05:07 +01:00
|
|
|
preCheck = ''
|
2019-07-23 11:27:29 +01:00
|
|
|
cd build/lib
|
|
|
|
'';
|
|
|
|
|
2018-05-28 11:38:44 +01:00
|
|
|
meta = {
|
|
|
|
description = "Tools for Beam IO and Manipulation";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://radio-astro-tools.github.io";
|
2018-05-28 11:38:44 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|