unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#55604] [PATCH 1/1] gnu: Add python-spherical-geometry
@ 2022-05-23 22:52 Sharlatan Hellseher
  2022-08-14 16:35 ` [bug#55604] Sharlatan Hellseher
  2023-02-24 22:55 ` bug#55604: [PATCH 1/1] gnu: Add python-spherical-geometry Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Sharlatan Hellseher @ 2022-05-23 22:52 UTC (permalink / raw)
  To: 55604

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

Hi Guix team,

This patch ads astronomical Python libary spherical_geometry

Sharlatan Hellseher (1):
  gnu: Add python-spherical-geometry

 gnu/packages/astronomy.scm | 50 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

base-commit: 00be2fcb0b79641790a793df7640344e96283a2a

Pending astronomical patches:
- https://issues.guix.gnu.org/55509 (calceph)
- https://issues.guix.gnu.org/48454 (assay - custom test suit for soem
packed astronomical packages with tests disbled)

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

[-- Attachment #2: 0001-gnu-Add-python-spherical-geometry.patch --]
[-- Type: text/x-patch, Size: 3234 bytes --]

From 2c838787dd751a5695ea31accd2738eafc96ceb8 Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Mon, 23 May 2022 23:44:58 +0100
Subject: [PATCH 1/1] gnu: Add python-spherical-geometry

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

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index c209b1538f..fc09a55f7a 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -48,6 +48,7 @@ (define-module (gnu packages astronomy)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages maths)
+  #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages netpbm)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -68,6 +69,7 @@ (define-module (gnu packages astronomy)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
+  #:use-module (guix gexp)
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
@@ -925,6 +927,54 @@ (define-public python-astral
 elevation, solar azimuth, rahukaalam, and the phases of the moon.")
     (license license:asl2.0)))
 
+(define-public python-spherical-geometry
+  (package
+    (name "python-spherical-geometry")
+    (version "1.2.22")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/spacetelescope/spherical_geometry")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      ;; NOTE: (Sharlatan-20220523T231348+0100): Tests depends on old Python2
+      ;; libarry `sphere'
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'preparations
+            (lambda _
+              ;; Fixing: setuptools-scm was unable to detect version for ...
+              (substitute* "setup.py"
+                (("use_scm_version=True")
+                 (format #f "version=~s" #$version))
+                (("setup_requires=\\['setuptools_scm'\\],.*")
+                 ""))
+              ;; Use our own libraries in place of bundles.
+              (setenv "USE_SYSTEM_QD" "1"))))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools-scm))
+    (inputs
+     (list qd))
+    (propagated-inputs
+     (list python-astropy
+           python-numpy))
+    (home-page "https://github.com/spacetelescope/tweakwcs")
+    (synopsis "Python astronimical package for handling spherical polygons")
+    (description
+     "The @code{spherical_geometry} library is a Python package for handling
+spherical polygons that represent arbitrary regions of the sky.")
+    ;; LICENSE.rst Association of Universities for Research in Astronomy (AURA)
+    ;; QD_LIBRARY_LICENSE.rst for bandeled QD source
+    (license license:bsd-3)))
+
 (define-public libnova
   (package
     (name "libnova")
-- 
2.36.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#55604]
  2022-05-23 22:52 [bug#55604] [PATCH 1/1] gnu: Add python-spherical-geometry Sharlatan Hellseher
@ 2022-08-14 16:35 ` Sharlatan Hellseher
  2023-02-24 22:55 ` bug#55604: [PATCH 1/1] gnu: Add python-spherical-geometry Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Sharlatan Hellseher @ 2022-08-14 16:35 UTC (permalink / raw)
  To: 55604

Hi Guix team!

A gentle ping for reviewing of this package :)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#55604: [PATCH 1/1] gnu: Add python-spherical-geometry
  2022-05-23 22:52 [bug#55604] [PATCH 1/1] gnu: Add python-spherical-geometry Sharlatan Hellseher
  2022-08-14 16:35 ` [bug#55604] Sharlatan Hellseher
@ 2023-02-24 22:55 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-02-24 22:55 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: 55604-done

Hi,

Sharlatan Hellseher <sharlatanus@gmail.com> skribis:

> From 2c838787dd751a5695ea31accd2738eafc96ceb8 Mon Sep 17 00:00:00 2001
> From: Sharlatan Hellseher <sharlatanus@gmail.com>
> Date: Mon, 23 May 2022 23:44:58 +0100
> Subject: [PATCH 1/1] gnu: Add python-spherical-geometry
>
> * gnu/packages/astronomy.scm (python-spherical-geometry): New variable.

Finally applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-24 22:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 22:52 [bug#55604] [PATCH 1/1] gnu: Add python-spherical-geometry Sharlatan Hellseher
2022-08-14 16:35 ` [bug#55604] Sharlatan Hellseher
2023-02-24 22:55 ` bug#55604: [PATCH 1/1] gnu: Add python-spherical-geometry Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).