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

47 lines
938 B
Nix
Raw Normal View History

2018-05-28 12:38:44 +02:00
{ lib
, fetchPypi
, buildPythonPackage
, astropy
, pytest
, pytest-astropy
, astropy-helpers
, scipy
}:
2018-05-28 12:38:44 +02:00
buildPythonPackage rec {
pname = "radio_beam";
version = "0.3.1";
2018-05-28 12:38:44 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "1wgd9dyz3pcc9ighkclb6qfyshwbg35s57lz6k62jhcxpvp8r5zb";
2018-05-28 12:38:44 +02:00
};
propagatedBuildInputs = [ astropy ];
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 12:38:44 +02:00
meta = {
description = "Tools for Beam IO and Manipulation";
homepage = http://radio-astro-tools.github.io;
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ smaret ];
};
}