1{ lib
2, fetchPypi
3, buildPythonPackage
4, setuptools-scm
5, astropy
6, pytestCheckHook
7, pytest-doctestplus
8, scipy
9}:
10
11buildPythonPackage rec {
12 pname = "radio_beam";
13 version = "0.3.3";
14
15 src = fetchPypi {
16 inherit version;
17 pname = "radio-beam";
18 sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd";
19 };
20
21 nativeBuildInputs = [
22 setuptools-scm
23 ];
24
25 propagatedBuildInputs = [ astropy ];
26
27 checkInputs = [ pytestCheckHook pytest-doctestplus scipy ];
28
29 # Tests must be run in the build directory
30 preCheck = ''
31 cd build/lib
32 '';
33
34 meta = {
35 description = "Tools for Beam IO and Manipulation";
36 homepage = "http://radio-astro-tools.github.io";
37 license = lib.licenses.bsd3;
38 platforms = lib.platforms.all;
39 maintainers = with lib.maintainers; [ smaret ];
40 };
41}
42
43