Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 762 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, astropy 5, pytestCheckHook 6, pytest-doctestplus 7, scipy 8}: 9 10buildPythonPackage rec { 11 pname = "radio_beam"; 12 version = "0.3.3"; 13 14 src = fetchPypi { 15 inherit version; 16 pname = "radio-beam"; 17 sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd"; 18 }; 19 20 propagatedBuildInputs = [ astropy ]; 21 22 checkInputs = [ pytestCheckHook pytest-doctestplus scipy ]; 23 24 # Tests must be run in the build directory 25 preCheck = '' 26 cd build/lib 27 ''; 28 29 meta = { 30 description = "Tools for Beam IO and Manipulation"; 31 homepage = "http://radio-astro-tools.github.io"; 32 license = lib.licenses.bsd3; 33 platforms = lib.platforms.all; 34 maintainers = with lib.maintainers; [ smaret ]; 35 }; 36} 37 38