nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 asdf-astropy,
4 asdf-wcs-schemas,
5 asdf,
6 astropy,
7 buildPythonPackage,
8 fetchFromGitHub,
9 numpy,
10 pytestCheckHook,
11 scipy,
12 setuptools-scm,
13 setuptools,
14}:
15
16buildPythonPackage (finalAttrs: {
17 pname = "gwcs";
18 version = "1.0.1";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "spacetelescope";
23 repo = "gwcs";
24 tag = finalAttrs.version;
25 hash = "sha256-0iUnapBn8yDCx1tqHD10Ljid15yBuqlICyFuva2LNPk=";
26 };
27
28 build-system = [
29 setuptools
30 setuptools-scm
31 ];
32
33 dependencies = [
34 asdf
35 asdf-astropy
36 asdf-wcs-schemas
37 astropy
38 numpy
39 scipy
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "gwcs" ];
47
48 meta = {
49 description = "Module to manage the Generalized World Coordinate System";
50 homepage = "https://github.com/spacetelescope/gwcs";
51 changelog = "https://github.com/spacetelescope/gwcs/blob/${finalAttrs.src.tag}/CHANGES.rst";
52 license = lib.licenses.bsd3;
53 maintainers = with lib.maintainers; [ fab ];
54 };
55})