nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 54 lines 904 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, setuptools-scm 5, astropy 6, numpy 7, scipy 8, six 9, pytestCheckHook 10, pytest-doctestplus 11}: 12 13buildPythonPackage rec { 14 pname = "radio_beam"; 15 version = "0.3.3"; 16 format = "pyproject"; 17 18 src = fetchPypi { 19 inherit version; 20 pname = "radio-beam"; 21 sha256 = "e34902d91713ccab9f450b9d3e82317e292cf46a30bd42f9ad3c9a0519fcddcd"; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools-scm 26 ]; 27 28 propagatedBuildInputs = [ 29 astropy 30 numpy 31 scipy 32 six 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 pytest-doctestplus 38 ]; 39 40 # Tests must be run in the build directory 41 preCheck = '' 42 cd build/lib 43 ''; 44 45 meta = { 46 description = "Tools for Beam IO and Manipulation"; 47 homepage = "http://radio-astro-tools.github.io"; 48 license = lib.licenses.bsd3; 49 platforms = lib.platforms.all; 50 maintainers = with lib.maintainers; [ smaret ]; 51 }; 52} 53 54