1{
2 lib,
3 asdf-astropy,
4 asdf-wcs-schemas,
5 asdf,
6 astropy,
7 buildPythonPackage,
8 fetchFromGitHub,
9 numpy,
10 pytest-astropy,
11 pytestCheckHook,
12 pythonOlder,
13 scipy,
14 setuptools-scm,
15 setuptools,
16 tomli,
17}:
18
19buildPythonPackage rec {
20 pname = "gwcs";
21 version = "0.21.0";
22 pyproject = true;
23
24 disabled = pythonOlder "3.10";
25
26 src = fetchFromGitHub {
27 owner = "spacetelescope";
28 repo = "gwcs";
29 rev = "refs/tags/${version}";
30 hash = "sha256-76h2lDIaPHj7HarVcE0t5k6CA/hLCwquaz+2wMsKj+Y=";
31 };
32
33 build-system = [
34 setuptools
35 setuptools-scm
36 ];
37
38 dependencies = [
39 asdf
40 asdf-astropy
41 asdf-wcs-schemas
42 astropy
43 numpy
44 scipy
45 ];
46
47 nativeCheckInputs = [
48 pytest-astropy
49 pytestCheckHook
50 ];
51
52 pythonImportsCheck = [ "gwcs" ];
53
54 meta = with lib; {
55 description = "Module to manage the Generalized World Coordinate System";
56 homepage = "https://github.com/spacetelescope/gwcs";
57 changelog = "https://github.com/spacetelescope/gwcs/blob/${version}/CHANGES.rst";
58 license = licenses.bsd3;
59 maintainers = with maintainers; [ fab ];
60 };
61}