mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
51 lines
914 B
Nix
51 lines
914 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, astropy
|
|
, astropy-extension-helpers
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, pytest-doctestplus
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "astropy-healpix";
|
|
version = "0.7";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = lib.replaceStrings ["-"] ["_"] pname;
|
|
sha256 = "sha256-iMOE60MimXpY3ok46RrJ/5D2orbLKuI+IWnHQFrdOtg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
astropy-extension-helpers
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
astropy
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-doctestplus
|
|
hypothesis
|
|
];
|
|
|
|
# tests must be run in the build directory
|
|
preCheck = ''
|
|
cd build/lib*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "BSD-licensed HEALPix for Astropy";
|
|
homepage = "https://github.com/astropy/astropy-healpix";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.smaret ];
|
|
};
|
|
}
|