From: Luis Felipe via Guix-patches via <guix-patches@gnu.org>
To: "52064@debbugs.gnu.org" <52064@debbugs.gnu.org>
Subject: [bug#52064] [PATCH] gnu: Add python-sodapy.
Date: Thu, 25 Nov 2021 18:14:44 +0000 [thread overview]
Message-ID: <G2tTpXOZFA9mOE-JxQJ4kmaAhSiDWG8lANC5lqpLTjnuIEW_jv7Qlx3iBQzxWuuTo2D48AXfFtfzkxkDamNwCuq2uHVgO2cjmhTStshhY-U=@protonmail.com> (raw)
In-Reply-To: <qH5fB6I_4GIBHC43qYg95kvvLatr5GxbENUDfkxcazsr4UEOY0UH5cv0NzwrVsBtWqIScC67gr44qlrAzD0Z7jINkwuTZJiDnFUtb4f9caM=@protonmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 98 bytes --]
Hi. Here's the new package definition with check phase enabled.
---
Luis Felipe López Acevedo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-sodapy.patch --]
[-- Type: text/x-patch; filename="0001-gnu-Add-python-sodapy.patch"; name="0001-gnu-Add-python-sodapy.patch", Size: 2472 bytes --]
From d7daf5771d02378606437c3b725e1229d405eeaa Mon Sep 17 00:00:00 2001
From: Luis Felipe <luis.felipe.la@protonmail.com>
Date: Tue, 23 Nov 2021 13:30:04 -0500
Subject: [PATCH] gnu: Add python-sodapy.
* gnu/packages/python-web.scm (python-sodapy): New variable.
---
gnu/packages/python-web.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4ddf89c207..d82edfa525 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -46,6 +46,7 @@
;;; Copyright © 2021 Pradana Aumars <paumars@courrier.dev>
;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2021 jgart <jgart@dismail.de>
+;;; Copyright © 2021 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6348,3 +6349,38 @@ (define-public python-flask-combo-jsonapi
Flask-RESTful to quickly build APIs that fit the complexity of existing
real-life projects with legacy data and diverse storage providers.")
(license license:expat)))
+
+(define-public python-sodapy
+ (package
+ (name "python-sodapy")
+ (version "2.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xmunoz/sodapy")
+ (commit (string-append version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "011gmxrnzipa9s6h2m9n9z60l2xb4bnsc983ixylffw8482j3qcx"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ ;; Add current working directory to PYTHONPATH so that
+ ;; the tests can find the sodapy package.
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) ":"
+ (getenv "PYTHONPATH")))
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-requests-mock" ,python-requests-mock)))
+ (propagated-inputs `(("python-requests" ,python-requests)))
+ (home-page "https://github.com/xmunoz/sodapy")
+ (synopsis "Python library for the Socrata Open Data API")
+ (description "Python library for the Socrata Open Data API.")
+ (license license:expat)))
--
2.33.0
[-- Attachment #1.3: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1815 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]
next prev parent reply other threads:[~2021-11-25 18:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-23 19:22 [bug#52064] [PATCH] gnu: Add python-sodapy Luis Felipe via Guix-patches via
2021-11-24 16:20 ` Luis Felipe via Guix-patches via
2021-11-24 23:31 ` Luis Felipe via Guix-patches via
2021-11-25 18:14 ` Luis Felipe via Guix-patches via [this message]
2023-01-04 1:08 ` bug#52064: " Maxim Cournoyer
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='G2tTpXOZFA9mOE-JxQJ4kmaAhSiDWG8lANC5lqpLTjnuIEW_jv7Qlx3iBQzxWuuTo2D48AXfFtfzkxkDamNwCuq2uHVgO2cjmhTStshhY-U=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=52064@debbugs.gnu.org \
--cc=luis.felipe.la@protonmail.com \
/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 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).