* [bug#56730] [PATCH 0/2]: gnu: Add libsep (astronopy)
@ 2022-07-23 21:18 Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 1/2]: gnu: Add libsep Sharlatan Hellseher
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2022-07-23 21:18 UTC (permalink / raw)
To: 56730
Hi Guix team!
This patch series introduce C library from SEP project as a main
package libsep and inherit python-sep out of it.
> ./pre-inst-env guix build python-sep libsep
/gnu/store/31zbssd2kxn3bafqfg1283vqi7f9adj5-libsep-1.2.1
/gnu/store/d7ww46gygffzdmq48aqi3r787dnsyhlr-python-sep-1.2.1
Sharlatan Hellseher (2):
gnu: Add libsep
gnu: python-sep: Update to 1.2.1
gnu/packages/astronomy.scm | 69 ++++++++++++++++++++++++++++----------
1 file changed, 51 insertions(+), 18 deletions(-)
base-commit: 7aab4eddd04e4b26986903680b28dce2de0f4db0
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#56730] [PATCH 1/2]: gnu: Add libsep
2022-07-23 21:18 [bug#56730] [PATCH 0/2]: gnu: Add libsep (astronopy) Sharlatan Hellseher
@ 2022-07-23 21:20 ` Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 2/2]: gnu: python-sep: Update to 1.2.1 Sharlatan Hellseher
2022-08-01 9:30 ` bug#56730: [PATCH 0/2]: gnu: Add libsep (astronopy) Ludovic Courtès
2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2022-07-23 21:20 UTC (permalink / raw)
To: 56730
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
[-- Attachment #2: 0001-gnu-Add-libsep.patch --]
[-- Type: text/x-patch, Size: 2664 bytes --]
From 67b697c2e8fd8a2fa81914ead555290b0e2fb36b Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Sat, 23 Jul 2022 22:00:44 +0100
Subject: [PATCH 1/2] gnu: Add libsep
* gnu/packages/astronomy.scm: (libsep): New variable.
---
gnu/packages/astronomy.scm | 42 ++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 498252aaf4..e5f50001fe 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1131,6 +1131,48 @@ (define-public libnova
(license (list license:lgpl2.0+
license:gpl2+)))) ; examples/transforms.c & lntest/*.c
+(define-public libsep
+ (package
+ (name "libsep")
+ (version "1.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kbarbary/sep")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0sag96am6r1ffh9860yq40js874362v3132ahlm6sq7padczkicf"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "PREFIX=" #$output))
+ #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (chdir "../source")
+ (invoke "make"
+ (string-append "CC=" #$(cc-for-target))
+ "test")))))))
+ (native-inputs
+ (list python-wrapper))
+ (home-page "https://github.com/kbarbary/sep")
+ (synopsis "Astronomical source extraction and photometry library")
+ (description
+ "SEP makes the core algorithms of
+@url{https://www.astromatic.net/software/sextractor/, sextractor} available as a
+library of stand-alone functions and classes. These operate directly on
+in-memory arrays (no FITS files or configuration files). The code is derived
+from the Source Extractor code base (written in C) and aims to produce results
+compatible with Source Extractor whenever possible. SEP consists of a C library
+with no dependencies outside the standard library, and a Python module that
+wraps the C library in a Pythonic API. The Python wrapper operates on NumPy
+arrays with NumPy as its only dependency.")
+ (license (list license:expat license:lgpl3+ license:bsd-3))))
+
(define-public libskry
(package
(name "libskry")
--
2.36.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#56730] [PATCH 2/2]: gnu: python-sep: Update to 1.2.1
2022-07-23 21:18 [bug#56730] [PATCH 0/2]: gnu: Add libsep (astronopy) Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 1/2]: gnu: Add libsep Sharlatan Hellseher
@ 2022-07-23 21:20 ` Sharlatan Hellseher
2022-08-01 9:30 ` bug#56730: [PATCH 0/2]: gnu: Add libsep (astronopy) Ludovic Courtès
2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2022-07-23 21:20 UTC (permalink / raw)
To: 56730
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
[-- Attachment #2: 0002-gnu-python-sep-Update-to-1.2.1.patch --]
[-- Type: text/x-patch, Size: 1780 bytes --]
From 12c617952c5b9294899da48a56bd936d2cfa5e86 Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Sat, 23 Jul 2022 22:12:30 +0100
Subject: [PATCH 2/2] gnu: python-sep: Update to 1.2.1
* gnu/packages/astronomy.scm: (python-sep): Update to 1.2.1.
Inherit from libsep
---
gnu/packages/astronomy.scm | 27 +++++++++------------------
1 file changed, 9 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index e5f50001fe..83d058d5c4 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1650,27 +1650,18 @@ (define-public python-pyerfa
(define-public python-sep
(package
+ (inherit libsep)
(name "python-sep")
- (version "1.1.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "sep" version))
- (sha256
- (base32 "0wxdqn92q1grv8k7xi7h88ac6wnznw4xh5bdlz1vz6za2dgsyj4m"))))
(build-system python-build-system)
+ (arguments
+ (strip-keyword-arguments
+ '(#:make-flags) (package-arguments libsep)))
(native-inputs
- (list python-cython python-pytest))
- (inputs
- (list python-numpy))
- (home-page "https://github.com/kbarbary/sep")
- (synopsis "Astronomical source extraction and photometry library")
- (description
- "SEP makes the core algorithms of Source Extractor available as a library
-of stand-alone functions and classes.")
- (license (list license:bsd-3
- license:expat
- license:lgpl3+))))
+ (modify-inputs (package-inputs libsep)
+ (prepend python-cython)))
+ (propagated-inputs
+ (modify-inputs (package-inputs libsep)
+ (prepend python-numpy)))))
(define-public python-asdf
(package
--
2.36.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#56730: [PATCH 0/2]: gnu: Add libsep (astronopy)
2022-07-23 21:18 [bug#56730] [PATCH 0/2]: gnu: Add libsep (astronopy) Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 1/2]: gnu: Add libsep Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 2/2]: gnu: python-sep: Update to 1.2.1 Sharlatan Hellseher
@ 2022-08-01 9:30 ` Ludovic Courtès
2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-08-01 9:30 UTC (permalink / raw)
To: Sharlatan Hellseher; +Cc: 56730-done
Hi,
Sharlatan Hellseher <sharlatanus@gmail.com> skribis:
> gnu: Add libsep
> gnu: python-sep: Update to 1.2.1
Applied both, thanks!
It would be nice to see if ‘python-sep’ can be made to depend on
‘libsep’ (currently I think it rebuilds the whole C library and embeds
it into the Python bindings).
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-01 9:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23 21:18 [bug#56730] [PATCH 0/2]: gnu: Add libsep (astronopy) Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 1/2]: gnu: Add libsep Sharlatan Hellseher
2022-07-23 21:20 ` [bug#56730] [PATCH 2/2]: gnu: python-sep: Update to 1.2.1 Sharlatan Hellseher
2022-08-01 9:30 ` bug#56730: [PATCH 0/2]: gnu: Add libsep (astronopy) 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).