unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi
@ 2021-04-18  6:44 david larsson
  2021-04-18  6:48 ` [bug#47864] [PATCH 1/3] gnu: Add marshmallow-3.2 david larsson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: david larsson @ 2021-04-18  6:44 UTC (permalink / raw)
  To: 47864

Hi!
This patch series is to add python-flask-combo-jsonapi and necessary 
dependencies.

Best regards,
David




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

* [bug#47864] [PATCH 1/3] gnu: Add marshmallow-3.2.
  2021-04-18  6:44 [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi david larsson
@ 2021-04-18  6:48 ` david larsson
  2021-04-18  6:56 ` [bug#47864] [PATCH 2/3] gnu: Add marshmallow-jsonapi david larsson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: david larsson @ 2021-04-18  6:48 UTC (permalink / raw)
  To: 47864

 From 5eb6db940c379e44a95b5a64382cc867f7d3c197 Mon Sep 17 00:00:00 2001
 From: methuselah-0 <david.larsson@selfhosted.xyz>
Date: Wed, 31 Mar 2021 17:30:20 +0200
Subject: [PATCH 1/3] gnu: Add marshmallow-3.2.

* gnu/packages/python-xyz.scm (python-marshmallow-3.2): New variable.
---
  gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
  1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c90a89a411..872ba4b281 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -99,6 +99,7 @@
  ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
  ;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
  ;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
+;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
  ;;;
  ;;; This file is part of GNU Guix.
  ;;;
@@ -17122,6 +17123,31 @@ Python datatypes.")
  complex datatypes to and from native Python datatypes.")
      (license license:expat)))

+(define-public python-marshmallow-3.2
+  (package
+    (name "python-marshmallow")
+    (version "3.2.1")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (pypi-uri "marshmallow" version))
+      (sha256
+       (base32
+        "1w18klwj0z9bqxj252qpj1hz8l46nl27sbc89rkajc7mln73wbws"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-dateutil" ,python-dateutil)
+       ("python-simplejson" ,python-simplejson)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytz" ,python-pytz)))
+    (home-page "https://github.com/marshmallow-code/marshmallow")
+    (synopsis "Convert complex datatypes to and from native
+Python datatypes")
+    (description "@code{marshmallow} provides a library for converting
+complex datatypes to and from native Python datatypes.")
+    (license license:expat))) ; MIT license
+
  (define-public python-apispec
    (package
      (name "python-apispec")
-- 
2.30.2




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

* [bug#47864] [PATCH 2/3] gnu: Add marshmallow-jsonapi.
  2021-04-18  6:44 [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi david larsson
  2021-04-18  6:48 ` [bug#47864] [PATCH 1/3] gnu: Add marshmallow-3.2 david larsson
@ 2021-04-18  6:56 ` david larsson
  2021-04-18  6:57 ` [bug#47864] [PATCH 3/3] gnu: Add flask-combo-jsonapi david larsson
  2021-04-28  9:22 ` [bug#47864] [PATCH 0/3] " david larsson
  3 siblings, 0 replies; 6+ messages in thread
From: david larsson @ 2021-04-18  6:56 UTC (permalink / raw)
  To: 47864

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

This patch adds marshmallow-jsonapi locked at version 0.22 since 
flask-combo-jsonapi needs it locked to this version.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-marshmallow-jsonapi.patch --]
[-- Type: text/x-diff; name=0002-gnu-Add-marshmallow-jsonapi.patch, Size: 1925 bytes --]

From 76d533d57337702ddd1576783fa9fabb0fbf3127 Mon Sep 17 00:00:00 2001
From: methuselah-0 <david.larsson@selfhosted.xyz>
Date: Wed, 31 Mar 2021 17:34:00 +0200
Subject: [PATCH 2/3] gnu: Add marshmallow-jsonapi.

* gnu/packages/python-xyz.scm (python-marshmallow-jsonapi-0.22): New variable.
---
 gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 872ba4b281..ae91affd13 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17148,6 +17148,37 @@ Python datatypes")
 complex datatypes to and from native Python datatypes.")
     (license license:expat))) ; MIT license
 
+(define-public python-marshmallow-jsonapi-0.22
+  (package
+    (name "python-marshmallow-jsonapi")
+    (version "0.22.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "marshmallow-jsonapi" version))
+       (sha256
+        (base32
+         "0rfnagv76f0pwvdcc0604r78nphi7a7b6d5fjga2va522lydah27"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-marshmallow" ,python-marshmallow-3.2)))
+    (native-inputs
+     `(("python-faker" ,python-faker)
+       ("python-flake8" ,python-flake8)
+       ("python-flake8-bugbear" ,python-flake8-bugbear)
+       ("python-flask" ,python-flask)
+       ("python-mock" ,python-mock)
+       ("python-pre-commit" ,python-pre-commit)
+       ("python-pytest" ,python-pytest)
+       ("python-tox" ,python-tox)))
+    (home-page
+     "https://github.com/marshmallow-code/marshmallow-jsonapi")
+    (synopsis
+     "JSON API 1.0 (https://jsonapi.org) formatting with marshmallow")
+    (description
+     "JSON API 1.0 (https://jsonapi.org) formatting with marshmallow")
+    (license license:expat))) ; MIT license
+
 (define-public python-apispec
   (package
     (name "python-apispec")
-- 
2.30.2


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

* [bug#47864] [PATCH 3/3] gnu: Add flask-combo-jsonapi.
  2021-04-18  6:44 [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi david larsson
  2021-04-18  6:48 ` [bug#47864] [PATCH 1/3] gnu: Add marshmallow-3.2 david larsson
  2021-04-18  6:56 ` [bug#47864] [PATCH 2/3] gnu: Add marshmallow-jsonapi david larsson
@ 2021-04-18  6:57 ` david larsson
  2021-04-28  9:22 ` [bug#47864] [PATCH 0/3] " david larsson
  3 siblings, 0 replies; 6+ messages in thread
From: david larsson @ 2021-04-18  6:57 UTC (permalink / raw)
  To: 47864

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0003-gnu-Add-flask-combo-jsonapi.patch --]
[-- Type: text/x-diff; name=0003-gnu-Add-flask-combo-jsonapi.patch, Size: 2556 bytes --]

From 7e1c3d4e0c52a73c2369406c9165d0fff176a831 Mon Sep 17 00:00:00 2001
From: methuselah-0 <david.larsson@selfhosted.xyz>
Date: Wed, 31 Mar 2021 17:35:36 +0200
Subject: [PATCH 3/3] gnu: Add flask-combo-jsonapi.

* gnu/packages/python-web.scm (python-flask-combo-jsonapi): New variable.
---
 gnu/packages/python-web.scm | 40 +++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c7dd18ad19..8154ae82f7 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -40,6 +40,7 @@
 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
+;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5894,3 +5895,42 @@ your code non-blocking and speedy.")
      "Socks is a library providing core proxy (SOCKS4, SOCKS5, HTTP tunneling)
  functionality.")
     (license license:asl2.0)))
+
+(define-public python-flask-combo-jsonapi
+  (package
+    (name "python-flask-combo-jsonapi")
+    (version "1.0.6")
+    (source
+     (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://github.com/AdCombo/flask-combo-jsonapi/archive/"
+              version ".tar.gz"))
+        (sha256
+         (base32
+           "1ik5j4cc20q6ismpdzpb1a01wpdhm9vrnlmqzxxz2qqw6vazilna"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-flask" ,python-flask)
+       ("python-marshmallow" ,python-marshmallow-3.2)
+       ("python-marshmallow-jsonapi"
+        ,python-marshmallow-jsonapi-0.22)
+       ("python-apispec" ,python-apispec)
+       ("python-simplejson" ,python-simplejson)
+       ("python-six" ,python-six)
+       ("python-sqlalchemy" ,python-sqlalchemy)))
+    (native-inputs
+     `(("python-coverage" ,python-coverage)
+       ("python-coveralls" ,python-coveralls)
+       ("python-pytest-runner" ,python-pytest-runner)
+       ("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/AdCombo/flask-combo-jsonapi")
+    (synopsis
+     "Flask extension to create REST web api according to JSONAPI 1.0
+ specification")
+    (description
+     "Flask extension to create REST web api according to JSONAPI 1.0
+ specification with Flask, Marshmallow and data provider
+ of your choice (SQLAlchemy, MongoDB, ...)")
+    (license license:expat))) ; MIT license
-- 
2.30.2


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

* [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi
  2021-04-18  6:44 [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi david larsson
                   ` (2 preceding siblings ...)
  2021-04-18  6:57 ` [bug#47864] [PATCH 3/3] gnu: Add flask-combo-jsonapi david larsson
@ 2021-04-28  9:22 ` david larsson
  2023-05-29 11:04   ` bug#47864: " Jelle Licht
  3 siblings, 1 reply; 6+ messages in thread
From: david larsson @ 2021-04-28  9:22 UTC (permalink / raw)
  To: 47864; +Cc: Guix-patches

On 2021-04-18 08:44, david larsson wrote:
> Hi!
> This patch series is to add python-flask-combo-jsonapi and necessary
> dependencies.
> 
> Best regards,
> David

Is anyone willing to review and commit this?

Best regards,
David




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

* bug#47864: [PATCH 0/3] gnu: Add flask-combo-jsonapi
  2021-04-28  9:22 ` [bug#47864] [PATCH 0/3] " david larsson
@ 2023-05-29 11:04   ` Jelle Licht
  0 siblings, 0 replies; 6+ messages in thread
From: Jelle Licht @ 2023-05-29 11:04 UTC (permalink / raw)
  To: david larsson; +Cc: 47864-done

david larsson <david.larsson@selfhosted.xyz> writes:

> On 2021-04-18 08:44, david larsson wrote:
>> Hi!
>> This patch series is to add python-flask-combo-jsonapi and necessary
>> dependencies.
>> Best regards,
>> David
>
> Is anyone willing to review and commit this?

Superseded by the patch series that added python-flask-combo-jsonapi[0],
which has been merged into master. Closing.

[0]: https://issues.guix.gnu.org/51432




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

end of thread, other threads:[~2023-05-29 11:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-18  6:44 [bug#47864] [PATCH 0/3] gnu: Add flask-combo-jsonapi david larsson
2021-04-18  6:48 ` [bug#47864] [PATCH 1/3] gnu: Add marshmallow-3.2 david larsson
2021-04-18  6:56 ` [bug#47864] [PATCH 2/3] gnu: Add marshmallow-jsonapi david larsson
2021-04-18  6:57 ` [bug#47864] [PATCH 3/3] gnu: Add flask-combo-jsonapi david larsson
2021-04-28  9:22 ` [bug#47864] [PATCH 0/3] " david larsson
2023-05-29 11:04   ` bug#47864: " Jelle Licht

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).