Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 50 lines 927 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, numpy 5, astropy 6, astropy-extension-helpers 7, setuptools-scm 8, pytestCheckHook 9, pytest-doctestplus 10, hypothesis 11}: 12 13buildPythonPackage rec { 14 pname = "astropy-healpix"; 15 version = "0.6"; 16 17 src = fetchPypi { 18 inherit version; 19 pname = lib.replaceStrings ["-"] ["_"] pname; 20 sha256 = "409a6621c383641456c074f0f0350a24a4a58e910eaeef14e9bbce3e00ad6690"; 21 }; 22 23 nativeBuildInputs = [ 24 astropy-extension-helpers 25 setuptools-scm 26 ]; 27 28 propagatedBuildInputs = [ 29 numpy 30 astropy 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 pytest-doctestplus 36 hypothesis 37 ]; 38 39 # tests must be run in the build directory 40 preCheck = '' 41 cd build/lib* 42 ''; 43 44 meta = with lib; { 45 description = "BSD-licensed HEALPix for Astropy"; 46 homepage = "https://github.com/astropy/astropy-healpix"; 47 license = licenses.bsd3; 48 maintainers = [ maintainers.smaret ]; 49 }; 50}