diff mbox series

[bug#51765] : gnu: Add python-gwcs

Message ID CAO+9K5ppbo8uz8xn1uD6G5x30MHbu4afGGg7HU8eGLOmMo3K9w@mail.gmail.com
State Accepted
Headers show
Series [bug#51765] : gnu: Add python-gwcs | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Sharlatan Hellseher Nov. 11, 2021, 1:17 p.m. UTC
successfully built
/gnu/store/w870dhpqfq5ycggj9510kj1y54wqgz7v-python-gwcs-0.16.1.drv


-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

Comments

Sharlatan Hellseher Dec. 26, 2021, 7:01 p.m. UTC | #1
Hi Guix team!

Just a gentle ping for this patch, thanks.

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
Mathieu Othacehe Dec. 26, 2021, 7:55 p.m. UTC | #2
Hello,

> /gnu/store/w870dhpqfq5ycggj9510kj1y54wqgz7v-python-gwcs-0.16.1.drv

Sorry for the delay! Looks like the 0.18.0 release is out there. The
build dependency python-pytest-arraydiff also fails to build. Could you
please have a look?

Thanks,

Mathieu
Sharlatan Hellseher Dec. 26, 2021, 8:47 p.m. UTC | #3
Hi,

As it depends on astropy and it's failing right now, this patch list
may be reviewed first:

https://issues.guix.gnu.org/52768

I'll update gwcs to the 0.18.0 when this issue is resovled:

phase `check' succeeded after 0.0 seconds
starting phase `sanity-check'
validating 'pytest-arraydiff'
/gnu/store/hcg67xxfvlgg2kga73f026bzs9ck97lh-python-pytest-arraydiff-0.3/lib/python3.9/site-packages
...checking requirements: ERROR: pytest-arraydiff==0.3 The 'pytest'
distribution was not found and is required by pytest-arraydiff
error: in phase 'sanity-check': uncaught exception:
%exception #<&invoke-error program: "python" arguments:
("/gnu/store/nwwr89v2vyg1hs48i49m083vhczsgh3m-sanity-check.py"
"/gnu/store/hcg67xxfvlgg2kga73f026bzs9ck97lh-python-pytest-arraydiff-0.3/lib/python3.9/site-packages")
exit-status: 1 term-signal: #f stop-signal: #f>
phase `sanity-check' failed after 0.1 seconds
command "python"
"/gnu/store/nwwr89v2vyg1hs48i49m083vhczsgh3m-sanity-check.py"
"/gnu/store/hcg67xxfvlgg2kga73f026bzs9ck97lh-python-pytest-arraydiff-0.3/lib/python3.9/site-packages"
failed with status 1
builder for `/gnu/store/aa1hlq988yfk816xf0mk6d8lkp0hrmzh-python-pytest-arraydiff-0.3.drv'
failed with exit code 1
build of /gnu/store/aa1hlq988yfk816xf0mk6d8lkp0hrmzh-python-pytest-arraydiff-0.3.drv
failed
View build log at
'/var/log/guix/drvs/aa/1hlq988yfk816xf0mk6d8lkp0hrmzh-python-pytest-arraydiff-0.3.drv.bz2'.
guix build: error: build of
`/gnu/store/aa1hlq988yfk816xf0mk6d8lkp0hrmzh-python-pytest-arraydiff-0.3.drv'
failed

On Sun, 26 Dec 2021 at 19:55, Mathieu Othacehe <othacehe@gnu.org> wrote:
>
>
> Hello,
>
> > /gnu/store/w870dhpqfq5ycggj9510kj1y54wqgz7v-python-gwcs-0.16.1.drv
>
> Sorry for the delay! Looks like the 0.18.0 release is out there. The
> build dependency python-pytest-arraydiff also fails to build. Could you
> please have a look?
>
> Thanks,
>
> Mathieu
Mathieu Othacehe Dec. 26, 2021, 8:55 p.m. UTC | #4
Hey,

> I'll update gwcs to the 0.18.0 when this issue is resovled:

Nicolas just took care of it :).

Thanks,

Mathieu
Sharlatan Hellseher Jan. 2, 2022, 10:48 p.m. UTC | #5
Hi Guix team and Happy New 2022 Year!

The update took more time then I expected, but eventually it's
finished with some extra modification and new patch list.

Sharlatan Hellseher (6):
  gnu: python-asdf: Update to 2.8.3
  gnu: Add asdf-transform-schemas
  gnu: Add asdf-coordinates-schemas
  gnu: Add asdf-astropy
  gnu: Add asdf-wcs-schemas
  gnu: Add gwcs

 gnu/packages/astronomy.scm | 209 +++++++++++++++++++++++++++++++++----
 1 file changed, 191 insertions(+), 18 deletions(-)


base-commit: 01ec5efff7cf95cae69493bd4ccfdd21a38770ae

On Sun, 26 Dec 2021 at 20:55, Mathieu Othacehe <othacehe@gnu.org> wrote:
>
>
> Hey,
>
> > I'll update gwcs to the 0.18.0 when this issue is resovled:
>
> Nicolas just took care of it :).
>
> Thanks,
>
> Mathieu



-- 

… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
diff mbox series

Patch

From 5504205f6fcff3741c86bc8e9d203ea5da2ab431 Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Thu, 11 Nov 2021 13:14:41 +0000
Subject: [PATCH] gnu: Add python-gwcs

* gnu/packages/astronomy.scm: (python-gwcs): New variable.
---
 gnu/packages/astronomy.scm | 43 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index fc8959faad..59708e8e6b 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -708,6 +708,49 @@  (define-public python-astropy
 astronomy and astrophysics.")
     (license license:bsd-3)))
 
+(define-public python-gwcs
+  (package
+   (name "python-gwcs")
+   (version "0.16.1")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (pypi-uri "gwcs" version))
+     (sha256
+      (base32 "0xjmv0v8bdzhpq61gvp76bx17pbcvxs8vp2gmn0rgs01zkrg8csk"))))
+   (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest" "--pyargs" "gwcs")))))))
+   (native-inputs
+    `(("python-jsonschema" ,python-jsonschema)
+      ("python-pytest" ,python-pytest)
+      ("python-pytest-doctestplus" ,python-pytest-doctestplus)
+      ("python-pyyaml" ,python-pyyaml)
+      ("python-semantic-version" ,python-semantic-version)
+      ("python-setuptools-scm" ,python-setuptools-scm)))
+   (propagated-inputs
+    `(("python-asdf" ,python-asdf)
+      ("python-astropy" ,python-astropy)
+      ("python-numpy" ,python-numpy)
+      ("python-scipy" ,python-scipy)))
+   (home-page "https://gwcs.readthedocs.io/en/latest/")
+   (synopsis "Generalized World Coordinate System")
+   (description
+    "Generalized World Coordinate System (GWCS) is an Astropy affiliated package
+providing tools for managing the World Coordinate System of astronomical data.
+
+GWCS takes a general approach to the problem of expressing transformations
+between pixel and world coordinates.  It supports a data model which includes the
+entire transformation pipeline from input coordinates (detector by default) to
+world coordinates.  It is tightly integrated with Astropy.")
+   (license license:bsd-3)))
+
 (define-public libnova
   (package
     (name "libnova")
-- 
2.33.1