nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, astropy
3, astropy-extension-helpers
4, astropy-healpix
5, astropy-helpers
6, buildPythonPackage
7, cython
8, fetchPypi
9, numpy
10, pytest-astropy
11, pytestCheckHook
12, pythonOlder
13, scipy
14, setuptools-scm
15}:
16
17buildPythonPackage rec {
18 pname = "reproject";
19 version = "0.8";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-Z54sY3R6GViTvMLHrJclrAZ1dH4/9bzIrgqDd9nFbJY=";
27 };
28
29 nativeBuildInputs = [
30 astropy-extension-helpers
31 astropy-helpers
32 cython
33 setuptools-scm
34 ];
35
36 propagatedBuildInputs = [
37 astropy
38 astropy-healpix
39 astropy-helpers
40 numpy
41 scipy
42 ];
43
44 checkInputs = [
45 pytest-astropy
46 pytestCheckHook
47 ];
48
49 preCheck = ''
50 cd build/lib*
51 '';
52
53 pythonImportsCheck = [
54 "reproject"
55 ];
56
57 meta = with lib; {
58 description = "Reproject astronomical images";
59 homepage = "https://reproject.readthedocs.io";
60 license = licenses.bsd3;
61 maintainers = with maintainers; [ smaret ];
62 };
63}