depot/third_party/nixpkgs/pkgs/development/python-modules/astropy-healpix/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

53 lines
1 KiB
Nix

{ lib
, stdenv
, 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
];
nativeCheckInputs = [
pytestCheckHook
pytest-doctestplus
hypothesis
];
disabledTests = lib.optional (!stdenv.hostPlatform.isDarwin) "test_interpolate_bilinear_skycoord";
# 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 ];
};
}