* bug#27071: [PATCH 0/3] Add flask-script, flask-migrate, flasgger.
@ 2017-05-25 17:51 Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Danny Milosavljevic
0 siblings, 1 reply; 18+ messages in thread
From: Danny Milosavljevic @ 2017-05-25 17:51 UTC (permalink / raw)
To: 27071
Danny Milosavljevic (3):
gnu: Add python-flask-script.
gnu: Add python-flask-migrate.
gnu: Add python-flasgger.
gnu/packages/python.scm | 87 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
^ permalink raw reply [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 1/3] gnu: Add python-flask-script.
2017-05-25 17:51 bug#27071: [PATCH 0/3] Add flask-script, flask-migrate, flasgger Danny Milosavljevic
@ 2017-05-25 17:57 ` Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate Danny Milosavljevic
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-05-25 17:57 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-flask-script,
python2-flask-script): New variables.
---
gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 62fada66a..3bb183084 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14676,3 +14676,30 @@ JSON APIs with Behave.")
(define-public python2-behave-web-api
(package-with-python2 python-behave-web-api))
+
+(define-public python-flask-script
+ (package
+ (name "python-flask-script")
+ (version "2.0.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Flask-Script" version))
+ (sha256
+ (base32
+ "0zqh2yq8zk7m9b4xw1ryqmrljkdigfb3hk5155a3b5hkfnn6xxyf"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-flask" ,python-flask)
+ ("python-argcomplete" ,python-argcomplete)
+ ("python-werkzeug" ,python-werkzeug)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page
+ "http://github.com/smurfix/flask-script")
+ (synopsis "Scripting support for Flask")
+ (description "This package supports scripting in @code{python-flask}.")
+ (license license:bsd-3)))
+
+(define-public python2-flask-script
+ (package-with-python2 python-flask-script))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate.
2017-05-25 17:57 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Danny Milosavljevic
@ 2017-05-25 17:57 ` Danny Milosavljevic
2017-05-25 19:00 ` Marius Bakke
2017-05-25 17:57 ` bug#27071: [PATCH 3/3] gnu: Add python-flasgger Danny Milosavljevic
2017-05-25 19:00 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Marius Bakke
2 siblings, 1 reply; 18+ messages in thread
From: Danny Milosavljevic @ 2017-05-25 17:57 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-flask-migrate,
python2-flask-migrate): New variables.
---
gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3bb183084..dc87e9738 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14703,3 +14703,31 @@ JSON APIs with Behave.")
(define-public python2-flask-script
(package-with-python2 python-flask-script))
+
+(define-public python-flask-migrate
+ (package
+ (name "python-flask-migrate")
+ (version "2.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Flask-Migrate" version))
+ (sha256
+ (base32
+ "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-flask" ,python-flask)
+ ("python-alembic" ,python-alembic)
+ ("python-sqlalchemy" ,python-sqlalchemy)
+ ("python-flask-script" ,python-flask-script)
+ ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
+ (home-page "http://github.com/miguelgrinberg/flask-migrate/")
+ (synopsis "SQLAlchemy database migrations for Flask programs using
+Alembic")
+ (description "This package contains SQLAlchemy database migration tools
+for Flask programs that are using @code{python-alembic}.")
+ (license license:expat)))
+
+(define-public python2-flask-migrate
+ (package-with-python2 python-flask-migrate))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 3/3] gnu: Add python-flasgger.
2017-05-25 17:57 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate Danny Milosavljevic
@ 2017-05-25 17:57 ` Danny Milosavljevic
2017-05-25 19:02 ` Marius Bakke
2017-05-25 19:00 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Marius Bakke
2 siblings, 1 reply; 18+ messages in thread
From: Danny Milosavljevic @ 2017-05-25 17:57 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-flasgger,
python2-flasgger): New variables.
---
gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dc87e9738..b93479d37 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14731,3 +14731,35 @@ for Flask programs that are using @code{python-alembic}.")
(define-public python2-flask-migrate
(package-with-python2 python-flask-migrate))
+
+(define-public python-flasgger
+ (package
+ (name "python-flasgger")
+ (version "0.6.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flasgger" version))
+ (sha256
+ (base32
+ "0983v8s8fyarlpk7h9nvha6wys0fbzacwkkaickn2jqhv66wh9c6"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f))
+ (propagated-inputs
+ `(("python-flask" ,python-flask)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-jsonschema" ,python-jsonschema)
+ ("python-mistune" ,python-mistune)
+ ("python-six" ,python-six)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/rochacbruno/flasgger/")
+ (synopsis "Extract Swagger specs from your Flask project")
+ (description "This package allows extracting Swagger (documentation)
+specs from your Flask project and providing an @code{/apidocs/} endpoint
+in order to view them. It is a fork of Flask-Swagger.")
+ (license license:expat)))
+
+(define-public python2-flasgger
+ (package-with-python2 python-flasgger))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 1/3] gnu: Add python-flask-script.
2017-05-25 17:57 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 3/3] gnu: Add python-flasgger Danny Milosavljevic
@ 2017-05-25 19:00 ` Marius Bakke
2 siblings, 0 replies; 18+ messages in thread
From: Marius Bakke @ 2017-05-25 19:00 UTC (permalink / raw)
To: Danny Milosavljevic, 27071
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
Danny Milosavljevic <dannym@scratchpost.org> writes:
> * gnu/packages/python.scm (python-flask-script,
> python2-flask-script): New variables.
[...]
> + (home-page
> + "http://github.com/smurfix/flask-script")
This line break seems unnecessary.
> + (description "This package supports scripting in @code{python-flask}.")
Can you add a little more information here? What exactly does this
package provide? Why would I want it? The first paragraph here seems
like a much better starting point, but feel free to expand on it:
https://flask-script.readthedocs.io/en/latest/
LGTM with a more useful description!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate.
2017-05-25 17:57 ` bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate Danny Milosavljevic
@ 2017-05-25 19:00 ` Marius Bakke
0 siblings, 0 replies; 18+ messages in thread
From: Marius Bakke @ 2017-05-25 19:00 UTC (permalink / raw)
To: Danny Milosavljevic, 27071
[-- Attachment #1: Type: text/plain, Size: 153 bytes --]
Danny Milosavljevic <dannym@scratchpost.org> writes:
> * gnu/packages/python.scm (python-flask-migrate,
> python2-flask-migrate): New variables.
LGTM.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 3/3] gnu: Add python-flasgger.
2017-05-25 17:57 ` bug#27071: [PATCH 3/3] gnu: Add python-flasgger Danny Milosavljevic
@ 2017-05-25 19:02 ` Marius Bakke
2017-05-27 13:54 ` Danny Milosavljevic
0 siblings, 1 reply; 18+ messages in thread
From: Marius Bakke @ 2017-05-25 19:02 UTC (permalink / raw)
To: Danny Milosavljevic, 27071
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Danny Milosavljevic <dannym@scratchpost.org> writes:
> * gnu/packages/python.scm (python-flasgger,
> python2-flasgger): New variables.
[...]
> + (build-system python-build-system)
> + (arguments
> + `(#:tests? #f))
Please add a comment about why tests are disabled. Especially since
pytest is a native-input. Should it be? The rest LGTM.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* bug#27071: [PATCH 3/3] gnu: Add python-flasgger.
2017-05-25 19:02 ` Marius Bakke
@ 2017-05-27 13:54 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
0 siblings, 1 reply; 18+ messages in thread
From: Danny Milosavljevic @ 2017-05-27 13:54 UTC (permalink / raw)
To: Marius Bakke; +Cc: 27071
Hi Marius,
thanks for the review.
On Thu, 25 May 2017 21:02:13 +0200
Marius Bakke <mbakke@fastmail.com> wrote:
> Danny Milosavljevic <dannym@scratchpost.org> writes:
>
> > * gnu/packages/python.scm (python-flasgger,
> > python2-flasgger): New variables.
>
> [...]
>
> > + (build-system python-build-system)
> > + (arguments
> > + `(#:tests? #f))
>
> Please add a comment about why tests are disabled.
Because they don't work. I've reported it upstream at <https://github.com/rochacbruno/flasgger/issues/105>.
> Especially since
> pytest is a native-input. Should it be?
I guess not with tests disabled.
I'll keep trying to get it to work including the tests, but so far that requires the following new packages we didn't have:
- python-jsonpointer
- python-rfc3987
- python-validate-email
- python-flex
It also requires new native-inputs, finally ending up with:
(define-public python-flasgger
(package
(name "python-flasgger")
(version "0.6.3")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/rochacbruno/flasgger/archive/"
version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1gqzlm0rb55fdpsy5ipkganlx9cnpi454fqyycr03jm22zql14ay"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "Makefile"
(("flake8 flasgger --ignore=F403")
"flake8 flasgger --ignore=E731,F403"))
(setenv "PYTHONPATH" (string-append (getcwd)
":"
(getenv "PYTHONPATH")))
;(zero? (system* "py.test"))
(zero? (system* "make" "test"))
;#t
)))))
(propagated-inputs
`(("python-flask" ,python-flask)
("python-pyyaml" ,python-pyyaml)
("python-jsonschema" ,python-jsonschema)
("python-mistune" ,python-mistune)
("python-six" ,python-six)))
(native-inputs
`(("python-decorator" ,python-decorator)
("python-flake8" ,python-flake8)
("python-flask-restful" ,python-flask-restful)
("python-flex" ,python-flex)
("python-pytest-3.0" ,python-pytest-3.0)
("python-pytest-cov" ,python-pytest-cov)))
(home-page "https://github.com/rochacbruno/flasgger/")
(synopsis "Extract Swagger specs from your Flask project")
(description "This package allows extracting Swagger specs from your Flask
project. It is a fork of Flask-Swagger.")
(license license:expat)))
And then the tests finally run and fail.
Let's wait for a few days whether there's an easy fix from upstream. If not, we can still commit it with the tests disabled (ugh).
^ permalink raw reply [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies.
2017-05-27 13:54 ` Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 1/8] gnu: Add python-jsonpointer Danny Milosavljevic
` (8 more replies)
0 siblings, 9 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
Danny Milosavljevic (8):
gnu: Add python-jsonpointer.
gnu: Add python-rfc3987.
gnu: Add python-validate-email.
gnu: Add python-flex.
gnu: Add python-marshmallow.
gnu: Add python-bottle.
gnu: Add python-apispec.
gnu: Add python-flasgger.
gnu/packages/python.scm | 221 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 221 insertions(+)
^ permalink raw reply [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 1/8] gnu: Add python-jsonpointer.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 2/8] gnu: Add python-rfc3987 Danny Milosavljevic
` (7 subsequent siblings)
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-jsonpointer, python2-jsonpointer):
New variables.
---
gnu/packages/python.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7617490bd..621443e2f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14926,3 +14926,24 @@ Supported metrics are:
(define-public python2-radon
(package-with-python2 python-radon))
+
+(define-public python-jsonpointer
+ (package
+ (name "python-jsonpointer")
+ (version "1.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "jsonpointer" version))
+ (sha256
+ (base32
+ "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/stefankoegl/python-json-pointer")
+ (synopsis "Identify specific nodes in a JSON document")
+ (description "@code{jsonpointer} allows you to access specific nodes
+by path in a JSON document (see RFC 6901).")
+ (license license:bsd-3)))
+
+(define-public python2-jsonpointer
+ (package-with-python2 python-jsonpointer))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 2/8] gnu: Add python-rfc3987.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 1/8] gnu: Add python-jsonpointer Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 3/8] gnu: Add python-validate-email Danny Milosavljevic
` (6 subsequent siblings)
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-rfc3987, python2-rfc3987): New variables.
---
gnu/packages/python.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 621443e2f..98d114301 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14947,3 +14947,24 @@ by path in a JSON document (see RFC 6901).")
(define-public python2-jsonpointer
(package-with-python2 python-jsonpointer))
+
+(define-public python-rfc3987
+ (package
+ (name "python-rfc3987")
+ (version "1.3.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "rfc3987" version))
+ (sha256
+ (base32
+ "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
+ (build-system python-build-system)
+ (home-page "http://pypi.python.org/pypi/rfc3987")
+ (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
+ (description "@code{rfc3987} provides routines for parsing and
+validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
+ (license license:gpl3+)))
+
+(define-public python2-rfc3987
+ (package-with-python2 python-rfc3987))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 3/8] gnu: Add python-validate-email.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 1/8] gnu: Add python-jsonpointer Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 2/8] gnu: Add python-rfc3987 Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 4/8] gnu: Add python-flex Danny Milosavljevic
` (5 subsequent siblings)
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-validate-email, python2-validate-email):
New variables.
---
gnu/packages/python.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 98d114301..acd579791 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14968,3 +14968,24 @@ validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
(define-public python2-rfc3987
(package-with-python2 python-rfc3987))
+
+(define-public python-validate-email
+ (package
+ (name "python-validate-email")
+ (version "1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "validate_email" version))
+ (sha256
+ (base32
+ "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
+ (build-system python-build-system)
+ (home-page "http://github.com/syrusakbary/validate_email")
+ (synopsis "Verifies if an email address is valid and really exists")
+ (description "@code{validate_email} can be used to verify if an email
+address is valid and really exists.")
+ (license license:lgpl3+)))
+
+(define-public python2-validate-email
+ (package-with-python2 python-validate-email))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 4/8] gnu: Add python-flex.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
` (2 preceding siblings ...)
2017-06-03 6:22 ` bug#27071: [PATCH v2 3/8] gnu: Add python-validate-email Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 5/8] gnu: Add python-marshmallow Danny Milosavljevic
` (4 subsequent siblings)
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-flex, python2-flex): New variables.
---
gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index acd579791..be4ca2dd6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14989,3 +14989,32 @@ address is valid and really exists.")
(define-public python2-validate-email
(package-with-python2 python-validate-email))
+
+(define-public python-flex
+ (package
+ (name "python-flex")
+ (version "6.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flex" version))
+ (sha256
+ (base32
+ "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-click" ,python-click)
+ ("python-iso8601" ,python-iso8601)
+ ("python-jsonpointer" ,python-jsonpointer)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-requests" ,python-requests)
+ ("python-rfc3987" ,python-rfc3987)
+ ("python-six" ,python-six)
+ ("python-validate-email" ,python-validate-email)))
+ (home-page "https://github.com/pipermerriam/flex")
+ (synopsis "Validates Swagger schemata")
+ (description "@code{flex} can be used to validate Swagger schemata.")
+ (license license:bsd-3)))
+
+(define-public python2-flex
+ (package-with-python2 python-flex))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 5/8] gnu: Add python-marshmallow.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
` (3 preceding siblings ...)
2017-06-03 6:22 ` bug#27071: [PATCH v2 4/8] gnu: Add python-flex Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 6/8] gnu: Add python-bottle Danny Milosavljevic
` (3 subsequent siblings)
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-marshmallow, python2-marshmallow):
New variables.
---
gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index be4ca2dd6..7b82a301a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15018,3 +15018,31 @@ address is valid and really exists.")
(define-public python2-flex
(package-with-python2 python-flex))
+
+(define-public python-marshmallow
+ (package
+ (name "python-marshmallow")
+ (version "3.0.0b2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "marshmallow" version))
+ (sha256
+ (base32
+ "11bnpvfdbczr74177p295zbkdrax2cahvbj5bqhhlprgz2xxi5d9"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-dateutil" ,python-dateutil)
+ ("python-simplejson" ,python-simplejson)))
+ (native-inputs
+ `(("python-pytest-3.0" ,python-pytest-3.0)
+ ("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)))
+
+(define-public python2-marshmallow
+ (package-with-python2 python-marshmallow))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 6/8] gnu: Add python-bottle.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
` (4 preceding siblings ...)
2017-06-03 6:22 ` bug#27071: [PATCH v2 5/8] gnu: Add python-marshmallow Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 7/8] gnu: Add python-apispec Danny Milosavljevic
` (2 subsequent siblings)
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-bottle, python2-bottle): New variables.
---
gnu/packages/python.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7b82a301a..cbc8650b4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15046,3 +15046,23 @@ complex datatypes to and from native Python datatypes.")
(define-public python2-marshmallow
(package-with-python2 python-marshmallow))
+
+(define-public python-bottle
+ (package
+ (name "python-bottle")
+ (version "0.12.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "bottle" version))
+ (sha256
+ (base32
+ "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
+ (build-system python-build-system)
+ (home-page "http://bottlepy.org/")
+ (synopsis "WSGI framework for small web-applications.")
+ (description "@code{python-bottle} is a WSGI framework for small web-applications.")
+ (license license:expat)))
+
+(define-public python2-bottle
+ (package-with-python2 python-bottle))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 7/8] gnu: Add python-apispec.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
` (5 preceding siblings ...)
2017-06-03 6:22 ` bug#27071: [PATCH v2 6/8] gnu: Add python-bottle Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 8/8] gnu: Add python-flasgger Danny Milosavljevic
2017-06-04 12:09 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Marius Bakke
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-apispec, python2-apispec): New variables.
---
gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cbc8650b4..243637881 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15066,3 +15066,34 @@ complex datatypes to and from native Python datatypes.")
(define-public python2-bottle
(package-with-python2 python-bottle))
+
+(define-public python-apispec
+ (package
+ (name "python-apispec")
+ (version "0.22.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "apispec" version))
+ (sha256
+ (base32
+ "0y3jxmgp2d24am3hxl40f5rw9abb0r8037sagax3dv64h4n1azwq"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-pyyaml" ,python-pyyaml)))
+ (native-inputs
+ `(("python-pytest-3.0" ,python-pytest-3.0)
+ ("python-flask" ,python-flask)
+ ("python-marshmallow" ,python-marshmallow)
+ ("python-tornado" ,python-tornado)
+ ("python-bottle" ,python-bottle)
+ ("python-mock" ,python-mock)))
+ (home-page "https://github.com/marshmallow-code/apispec")
+ (synopsis "Swagger 2.0 API specification generator")
+ (description "@code{python-apispec} is a pluggable API specification
+generator. Currently supports the OpenAPI specification (f.k.a.
+Swagger 2.0).")
+ (license license:expat)))
+
+(define-public python2-apispec
+ (package-with-python2 python-apispec))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 8/8] gnu: Add python-flasgger.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
` (6 preceding siblings ...)
2017-06-03 6:22 ` bug#27071: [PATCH v2 7/8] gnu: Add python-apispec Danny Milosavljevic
@ 2017-06-03 6:22 ` Danny Milosavljevic
2017-06-04 12:09 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Marius Bakke
8 siblings, 0 replies; 18+ messages in thread
From: Danny Milosavljevic @ 2017-06-03 6:22 UTC (permalink / raw)
To: 27071
* gnu/packages/python.scm (python-flasgger, python2-flasgger): New variables.
---
gnu/packages/python.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 243637881..20d223f77 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15097,3 +15097,53 @@ Swagger 2.0).")
(define-public python2-apispec
(package-with-python2 python-apispec))
+
+(define-public python-flasgger
+ (package
+ (name "python-flasgger")
+ (version "0.6.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/rochacbruno/flasgger/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1gqzlm0rb55fdpsy5ipkganlx9cnpi454fqyycr03jm22zql14ay"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* "Makefile"
+ (("flake8 flasgger --ignore=F403")
+ "flake8 flasgger --ignore=E731,F403"))
+ (setenv "PYTHONPATH" (string-append (getcwd)
+ ":"
+ (getenv "PYTHONPATH")))
+ (zero? (system* "py.test")))))))
+ (propagated-inputs
+ `(("python-flask" ,python-flask)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-jsonschema" ,python-jsonschema)
+ ("python-mistune" ,python-mistune)
+ ("python-six" ,python-six)))
+ (native-inputs
+ `(("python-decorator" ,python-decorator)
+ ("python-flake8" ,python-flake8)
+ ("python-flask-restful" ,python-flask-restful)
+ ("python-flex" ,python-flex)
+ ("python-pytest-3.0" ,python-pytest-3.0)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-marshmallow" ,python-marshmallow)
+ ("python-apispec" ,python-apispec)))
+ (home-page "https://github.com/rochacbruno/flasgger/")
+ (synopsis "Extract Swagger specs from your Flask project")
+ (description "@code{python-flasgger} allows extracting Swagger specs
+from your Flask project. It is a fork of Flask-Swagger.")
+ (license license:expat)))
+
+(define-public python2-flasgger
+ (package-with-python2 python-flasgger))
^ permalink raw reply related [flat|nested] 18+ messages in thread
* bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies.
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
` (7 preceding siblings ...)
2017-06-03 6:22 ` bug#27071: [PATCH v2 8/8] gnu: Add python-flasgger Danny Milosavljevic
@ 2017-06-04 12:09 ` Marius Bakke
8 siblings, 0 replies; 18+ messages in thread
From: Marius Bakke @ 2017-06-04 12:09 UTC (permalink / raw)
To: Danny Milosavljevic, 27071
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
Danny Milosavljevic <dannym@scratchpost.org> writes:
> Danny Milosavljevic (8):
> gnu: Add python-jsonpointer.
> gnu: Add python-rfc3987.
> gnu: Add python-validate-email.
> gnu: Add python-flex.
> gnu: Add python-marshmallow.
> gnu: Add python-bottle.
> gnu: Add python-apispec.
> gnu: Add python-flasgger.
LGTM.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2017-06-04 12:10 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 17:51 bug#27071: [PATCH 0/3] Add flask-script, flask-migrate, flasgger Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Danny Milosavljevic
2017-05-25 17:57 ` bug#27071: [PATCH 2/3] gnu: Add python-flask-migrate Danny Milosavljevic
2017-05-25 19:00 ` Marius Bakke
2017-05-25 17:57 ` bug#27071: [PATCH 3/3] gnu: Add python-flasgger Danny Milosavljevic
2017-05-25 19:02 ` Marius Bakke
2017-05-27 13:54 ` Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 1/8] gnu: Add python-jsonpointer Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 2/8] gnu: Add python-rfc3987 Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 3/8] gnu: Add python-validate-email Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 4/8] gnu: Add python-flex Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 5/8] gnu: Add python-marshmallow Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 6/8] gnu: Add python-bottle Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 7/8] gnu: Add python-apispec Danny Milosavljevic
2017-06-03 6:22 ` bug#27071: [PATCH v2 8/8] gnu: Add python-flasgger Danny Milosavljevic
2017-06-04 12:09 ` bug#27071: [PATCH v2 0/8] Add python-flasgger and its dependencies Marius Bakke
2017-05-25 19:00 ` bug#27071: [PATCH 1/3] gnu: Add python-flask-script Marius Bakke
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).