nixpkgs/pkgs/development/python-modules/radio_beam/default.nix

39 lines
762 B
Nix
Raw Normal View History

2018-05-28 11:38:44 +01:00
{ lib
, fetchPypi
, buildPythonPackage
, astropy
2021-04-27 15:05:07 +01:00
, pytestCheckHook
, pytest-doctestplus
, scipy
}:
2018-05-28 11:38:44 +01:00
buildPythonPackage rec {
pname = "radio_beam";
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";
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 ];
# Tests must be run in the build directory
2021-04-27 15:05:07 +01:00
preCheck = ''
cd build/lib
'';
2018-05-28 11:38:44 +01:00
meta = {
description = "Tools for Beam IO and Manipulation";
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 ];
};
}