From: Pierre Langlois <pierre.langlois@gmx.com>
To: 49678@debbugs.gnu.org
Cc: Pierre Langlois <pierre.langlois@gmx.com>
Subject: [bug#49678] [PATCH 08/12] gnu: python-agate: Update to 1.6.3.
Date: Wed, 21 Jul 2021 14:50:22 +0100 [thread overview]
Message-ID: <20210721135026.32581-8-pierre.langlois@gmx.com> (raw)
In-Reply-To: <20210721135026.32581-1-pierre.langlois@gmx.com>
* gnu/packages/wireservice.scm (python-agate): Update to 1.6.3.
Rewrite package definition to inherit from a base variable.
[arguments]: Add a 'set-guixlocpath phases.
---
gnu/packages/wireservice.scm | 74 +++++++++++++++++++++---------------
1 file changed, 44 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/wireservice.scm b/gnu/packages/wireservice.scm
index 915e346dde..9811469082 100644
--- a/gnu/packages/wireservice.scm
+++ b/gnu/packages/wireservice.scm
@@ -24,7 +24,9 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages)
+ #:use-module (guix utils)
#:use-module (gnu packages)
+ #:use-module (gnu packages base)
#:use-module (gnu packages check)
#:use-module (gnu packages databases)
#:use-module (gnu packages python-web)
@@ -89,37 +91,49 @@
charts now and don't care if they're perfect.")))
(define-public python-agate
- (wireservice-package
- (name "python-agate")
- (version "1.6.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/wireservice/agate")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "077zj8xad8hsa3nqywvf7ircirmx3krxdipl8wr3dynv3l3khcpl"))))
- (native-inputs
- `(("python-nose" ,python-nose)
- ("python-sphinx" ,python-sphinx)
- ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
- ("python-csselect" ,python-cssselect)
- ("python-lxml" ,python-lxml)))
- (propagated-inputs
- `(("python-babel" ,python-babel)
- ("python-isodate" ,python-isodate)
- ("python-leather" ,python-leather)
- ("python-parsedatetime" ,python-parsedatetime)
- ("python-pytimeparse" ,python-pytimeparse)
- ("python-six" ,python-six)
- ("python-slugify" ,python-slugify)))
- (home-page "https://agate.rtfd.org")
- (synopsis "Data analysis library")
- (description "Agate is a Python data analysis library. It is an
+ (let ((base (wireservice-package
+ (name "python-agate")
+ (version "1.6.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wireservice/agate")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "12ramldv75mlhwz2f3w7yv6k88q7bq6q7hcl7k4822gdzhp2irdn"))))
+ (native-inputs
+ `(("glibc-locales" ,glibc-locales) ; for tests
+ ("python-nose" ,python-nose)
+ ("python-sphinx" ,python-sphinx)
+ ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
+ ("python-csselect" ,python-cssselect)
+ ("python-lxml" ,python-lxml)))
+ (propagated-inputs
+ `(("python-babel" ,python-babel)
+ ("python-isodate" ,python-isodate)
+ ("python-leather" ,python-leather)
+ ("python-parsedatetime" ,python-parsedatetime)
+ ("python-pytimeparse" ,python-pytimeparse)
+ ("python-six" ,python-six)
+ ("python-slugify" ,python-slugify)))
+ (home-page "https://agate.rtfd.org")
+ (synopsis "Data analysis library")
+ (description "Agate is a Python data analysis library. It is an
alternative to numpy and pandas that solves real-world problems with readable
-code. Agate was previously known as journalism.")))
+code. Agate was previously known as journalism."))))
+ (package (inherit base)
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ ;; The tests run setlocale.
+ (add-before 'check 'set-guixlocpath
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "GUIX_LOCPATH"
+ (string-append (assoc-ref inputs "glibc-locales")
+ "/lib/locale")))))))))))
(define-public python-agate-sql
(wireservice-package
--
2.32.0
next prev parent reply other threads:[~2021-07-21 13:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 13:43 [bug#49678] [PATCH 00/12] Update csvkit, python-agate, python-sqlalchemy and friends Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 01/12] gnu: python-alembic: Update to 1.6.5 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 02/12] gnu: python-flask-migrate: Update to 3.0.1 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 03/12] gnu: python-flask-sqlalchemy: Update to 2.5.1 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 04/12] gnu: python-sqlalchemy: Update to 1.4.21 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 05/12] gnu: python-aws-xray-sdk: Update to 2.8.0 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 06/12] gnu: python-openpyxl: Update to 3.0.7 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 07/12] gnu: wireservice-package: Honour tests? option Pierre Langlois
2021-07-21 13:50 ` Pierre Langlois [this message]
2021-07-21 13:50 ` [bug#49678] [PATCH 09/12] gnu: python-agate-dbf: Update to 0.2.2 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 10/12] gnu: python-agate-sql: Update to 0.5.7 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 11/12] gnu: python-agate-excel: Update to 0.2.4 Pierre Langlois
2021-07-21 13:50 ` [bug#49678] [PATCH 12/12] gnu: csvkit: Update to 1.0.6 Pierre Langlois
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210721135026.32581-8-pierre.langlois@gmx.com \
--to=pierre.langlois@gmx.com \
--cc=49678@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.