From 52a7fba8fc78763967c15781ea9b9176d3b4cc26 Mon Sep 17 00:00:00 2001 From: David Larsson Date: Wed, 27 Oct 2021 09:04:40 +0200 Subject: gnu: Add python-flask-combo-jsonapi. * gnu/packages/python-web.scm (python-flask-combo-jsonapi): New variable. Signed-off-by: Tobias Geerinckx-Rice --- gnu/packages/python-web.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 8a72f33a91..a37681dab4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6251,3 +6251,42 @@ communicate with Microsoft Azure Storage services.") comments, or tags from HTML snippets, extract base url from HTML snippets, translate entities on HTML strings, among other things.") (license license:bsd-3))) + +(define-public python-flask-combo-jsonapi + (package + (name "python-flask-combo-jsonapi") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AdCombo/flask-combo-jsonapi") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07fhcjiyif80z1vyh35za29sqx1mmqh568jrbrrs675j4a797sj1")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-marshmallow" ,python-marshmallow-3.2) + ("python-marshmallow-jsonapi" ,python-marshmallow-jsonapi) + ("python-simplejson" ,python-simplejson) + ("python-sqlalchemy" ,python-sqlalchemy-1.3) + ("python-apispec" ,python-apispec) + ("python-simplejson" ,python-simplejson) + ("python-six" ,python-six))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-coveralls" ,python-coveralls) + ("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (home-page "https://github.com/AdCombo/flask-combo-jsonapi") + (synopsis "Flask extension to quickly create JSON:API 1.0 REST Web APIs") + (description + "Flask-COMBO-JSONAPI is a Python Flask extension for building REST Web APIs +compliant with the @uref{https://jsonapi.org, JSON:API 1.0} specification. + +It tries to combine the power of Flask-Restless with the flexibility of +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))) -- cgit 1.4.1 From 73679a6837416644aa51c6d39e7970fa57d5aef1 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 31 Oct 2021 01:55:12 +0530 Subject: gnu: Add python-webcolors. * gnu/packages/python-web.scm (python-webcolors): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/python-web.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index a37681dab4..6887944d21 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -44,6 +44,7 @@ ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 Pradana Aumars +;;; Copyright © 2021 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -6252,6 +6253,43 @@ comments, or tags from HTML snippets, extract base url from HTML snippets, translate entities on HTML strings, among other things.") (license license:bsd-3))) +(define-public python-webcolors + (package + (name "python-webcolors") + (version "1.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "webcolors" version)) + (sha256 + (base32 "1rkda75h2p65zx6r84c9mjavn4xpviqvqrklvdvcklapd5in1wvn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/ubernostrum/webcolors") + (synopsis "HTML/CSS color definitions library") + (description "@code{python-webcolors} is a module for working with +HTML/CSS color definitions. Normalizing and converting between the following +formats is supported. +@itemize +@item Specification-defined color names +@item Six-digit hexadecimal +@item Three-digit hexadecimal +@item Integer rgb() triplet +@item Percentage rgb() triplet +@end itemize +Only the RGB colorspace is supported. Conversion to/from the HSL colorspace +can be handled by the @code{colorsys} module in the Python standard library.") + (license license:bsd-3))) + (define-public python-flask-combo-jsonapi (package (name "python-flask-combo-jsonapi") -- cgit 1.4.1