depot/third_party/nixpkgs/pkgs/development/python-modules/reproject/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

62 lines
1.1 KiB
Nix

{ lib
, astropy
, astropy-extension-helpers
, astropy-healpix
, buildPythonPackage
, cython
, fetchPypi
, numpy
, pytest-astropy
, pytestCheckHook
, pythonOlder
, scipy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "reproject";
version = "0.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zhjI4MjlCV9zR0nNcss+C36CZXY/imGsalfKMGacfi0=";
};
nativeBuildInputs = [
astropy-extension-helpers
cython
setuptools-scm
];
propagatedBuildInputs = [
astropy
astropy-healpix
numpy
scipy
];
checkInputs = [
pytest-astropy
pytestCheckHook
];
pytestFlagsArray = [
"build/lib*"
# Avoid failure due to user warning: Distutils was imported before Setuptools
"-p no:warnings"
];
pythonImportsCheck = [
"reproject"
];
meta = with lib; {
description = "Reproject astronomical images";
homepage = "https://reproject.readthedocs.io";
license = licenses.bsd3;
maintainers = with maintainers; [ smaret ];
};
}