summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-06-03 08:22:15 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2017-06-04 15:41:58 +0200
commit635b3636e20701450ead8294b69ee646a5c2fe42 (patch)
treec985425c4279595cc58c7e087dd7ebac593218df /gnu/packages/python.scm
parentd270df8d627aba2e7de4ded1a212735196a5585c (diff)
gnu: Add python-apispec.
* gnu/packages/python.scm (python-apispec, python2-apispec): New variables.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7cbeeb6fe0c..6930c8c19b7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15219,3 +15219,34 @@ complex datatypes to and from native Python datatypes.")
15219 15219
15220(define-public python2-bottle 15220(define-public python2-bottle
15221 (package-with-python2 python-bottle)) 15221 (package-with-python2 python-bottle))
15222
15223(define-public python-apispec
15224 (package
15225 (name "python-apispec")
15226 (version "0.22.0")
15227 (source
15228 (origin
15229 (method url-fetch)
15230 (uri (pypi-uri "apispec" version))
15231 (sha256
15232 (base32
15233 "0y3jxmgp2d24am3hxl40f5rw9abb0r8037sagax3dv64h4n1azwq"))))
15234 (build-system python-build-system)
15235 (propagated-inputs
15236 `(("python-pyyaml" ,python-pyyaml)))
15237 (native-inputs
15238 `(("python-pytest-3.0" ,python-pytest-3.0)
15239 ("python-flask" ,python-flask)
15240 ("python-marshmallow" ,python-marshmallow)
15241 ("python-tornado" ,python-tornado)
15242 ("python-bottle" ,python-bottle)
15243 ("python-mock" ,python-mock)))
15244 (home-page "https://github.com/marshmallow-code/apispec")
15245 (synopsis "Swagger 2.0 API specification generator")
15246 (description "@code{python-apispec} is a pluggable API specification
15247generator. Currently supports the OpenAPI specification (f.k.a.
15248Swagger 2.0).")
15249 (license license:expat)))
15250
15251(define-public python2-apispec
15252 (package-with-python2 python-apispec))