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}:
17
18buildPythonPackage rec {
19 pname = "gwcs";
20 version = "0.26.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.10";
24
25 src = fetchFromGitHub {
26 owner = "spacetelescope";
27 repo = "gwcs";
28 tag = version;
29 hash = "sha256-cJfNVX7rdJASQA3NmZt7d4pvYh6GAteR22jat0kccoo=";
30 };
31
32 build-system = [
33 setuptools
34 setuptools-scm
35 ];
36
37 dependencies = [
38 asdf
39 asdf-astropy
40 asdf-wcs-schemas
41 astropy
42 numpy
43 scipy
44 ];
45
46 nativeCheckInputs = [
47 pytest-astropy
48 pytestCheckHook
49 ];
50
51 pythonImportsCheck = [ "gwcs" ];
52
53 meta = with lib; {
54 description = "Module to manage the Generalized World Coordinate System";
55 homepage = "https://github.com/spacetelescope/gwcs";
56 changelog = "https://github.com/spacetelescope/gwcs/blob/${src.tag}/CHANGES.rst";
57 license = licenses.bsd3;
58 maintainers = with maintainers; [ fab ];
59 };
60}