2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchpatch2
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, astropy
|
2022-04-27 09:35:20 +00:00
|
|
|
, numpy
|
2022-09-30 11:47:45 +00:00
|
|
|
, matplotlib
|
2022-04-27 09:35:20 +00:00
|
|
|
, scipy
|
|
|
|
, six
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
2022-09-30 11:47:45 +00:00
|
|
|
, pytest-astropy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "radio-beam";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.3.7";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-7AFkuuYLzibwwgz6zrFw0fBXCnGLzdm4OgT+Chve5jU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Fix distutils deprecation in Python 3.12. See:
|
|
|
|
# https://github.com/radio-astro-tools/radio-beam/pull/124
|
|
|
|
patches = [
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/radio-astro-tools/radio-beam/commit/1eb0216c8d7f5a4494d8d1fe8c79b48425a9c491.patch";
|
|
|
|
hash = "sha256-kTJF/cnkJCjJI2psvs+4MWFn/+b8TvUWjdfYu5ot0XU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astropy
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
2022-09-30 11:47:45 +00:00
|
|
|
matplotlib
|
|
|
|
pytest-astropy
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"radio_beam"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for Beam IO and Manipulation";
|
|
|
|
homepage = "http://radio-astro-tools.github.io";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/radio-astro-tools/radio-beam/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ smaret ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|