[-- Attachment #1: Type: text/plain, Size: 172 bytes --] Hi Guix! Here is our efforts so far from today's meetup. Attached is a patch for python-stripe. https://github.com/stripe/stripe-python all the best, jgart [-- Attachment #2: 0001-gnu-Add-python-stripe.patch --] [-- Type: application/octet-stream, Size: 1860 bytes --] From b478dcf548ec2bb0cc0c4f682bb4d2f314b9ed6b Mon Sep 17 00:00:00 2001 From: LibreMiami <packaging-guix@libremiami.org> Date: Sat, 24 Apr 2021 16:22:20 -0400 Subject: [PATCH] gnu: Add python-stripe. * gnu/packages/python-web.scm (python-stripe): New variable. Co-authored-by: jgart <jgart@dismail.de> Co-authored-by: BonfaceKilz <me@bonfacemunyoki.com> Co-authored-by: Raghav Gururajan <rg@raghavgururajan.name> --- gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4f34502e86..d9d35510e4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1685,6 +1685,31 @@ connection to each user.") (license license:asl2.0) (properties `((python2-variant . ,(delay python2-tornado)))))) +(define-public python-stripe + (package + (name "python-stripe") + (version "2.56.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "stripe" version)) + (sha256 + (base32 + "0z3p8n004spmmzbla2xyikf28bc5fsl6i5056pqja3gfipxh9y9g")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; tests require network access + (propagated-inputs + `(("python-requests" ,python-requests))) + (home-page "https://stripe.com") + (synopsis "Python bindings for the Stripe API") + (description +"The Stripe Python library provides convenient access to the Stripe API +from applications written in the Python language. It includes a pre-defined set +of classes for API resources that initialize themselves dynamically from API +responses which makes it compatible with a wide range of versions of the Stripe API.") + (license license:expat))) + (define-public python-tornado-6 (package (name "python-tornado") -- 2.31.1
[-- Attachment #1.1: Type: text/plain, Size: 105 bytes --] So it appears we can enable tests using stripe-mock. We'll package it as well and enable the tests. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 236 bytes --]
tags 48006 moreinfo
thanks
Hello,
Raghav Gururajan <rg@raghavgururajan.name> writes:
> So it appears we can enable tests using stripe-mock. We'll package it
> as well and enable the tests.
Any update on this? Adding a package without tests doesn't provide any
guarantee of about whether it is functional, so I'd rather we add
stripe-mock first.
Thanks,
Maxim
On Wed, 22 Jun 2022 15:41:03 -0400 Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
> Any update on this? Adding a package without tests doesn't provide any
> guarantee of about whether it is functional, so I'd rather we add
> stripe-mock first.
>
> Thanks,
>
> Maxim
Hi, this can be closed as someone had already merged python-stripe without stripe-mock in another ticket.
We should probably add stripe-mock and enable tests for python-stripe in a new contribution.
all best,
jgart
OK, jgart <jgart@dismail.de> writes: > On Wed, 22 Jun 2022 15:41:03 -0400 Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote: >> Any update on this? Adding a package without tests doesn't provide any >> guarantee of about whether it is functional, so I'd rather we add >> stripe-mock first. >> >> Thanks, >> >> Maxim > > Hi, this can be closed as someone had already merged python-stripe without stripe-mock in another ticket. > > We should probably add stripe-mock and enable tests for python-stripe in a new contribution. OK, sounds good. Thanks for the heads-up. For the record, you can close a ticket yourself by adding '-done' at the end of the bug number in Debbugs, like so: 48006-done@debbugs.gnu.org C.f.: "Synopsis of bug submission and followup addresses" at https://debbugs.gnu.org/server-refcard.html. Thank you! Maxim