pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / gwcs / default.nix
blob07b235b410800508d5c2b6a4c5d6c1e5f37bb37a
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,
18 buildPythonPackage rec {
19   pname = "gwcs";
20   version = "0.21.0";
21   pyproject = true;
23   disabled = pythonOlder "3.10";
25   src = fetchFromGitHub {
26     owner = "spacetelescope";
27     repo = "gwcs";
28     rev = "refs/tags/${version}";
29     hash = "sha256-76h2lDIaPHj7HarVcE0t5k6CA/hLCwquaz+2wMsKj+Y=";
30   };
32   build-system = [
33     setuptools
34     setuptools-scm
35   ];
37   dependencies = [
38     asdf
39     asdf-astropy
40     asdf-wcs-schemas
41     astropy
42     numpy
43     scipy
44   ];
46   nativeCheckInputs = [
47     pytest-astropy
48     pytestCheckHook
49   ];
51   pythonImportsCheck = [ "gwcs" ];
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/${version}/CHANGES.rst";
57     license = licenses.bsd3;
58     maintainers = with maintainers; [ fab ];
59   };