summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-11-17 21:58:17 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-11-17 22:36:26 +0100
commit98c6a02573c6d568cfa830526dca15e6789d0646 (patch)
treee07fcbf73d11b1c8c3f3537dbd9d9d35cc1bac9b /gnu
parentac257f127ac5e1fd4758d3a05e4a19fde3af4e01 (diff)
downloadpatches-98c6a02573c6d568cfa830526dca15e6789d0646.tar
patches-98c6a02573c6d568cfa830526dca15e6789d0646.tar.gz
gnu: Move more web packages from python.scm to python-web.scm.
* gnu/packages/python.scm (python-pastescript, python2-pastescript, python-paste, python2-paste, python-werkzeug, python2-werkzeug, python-bottle, python2-bottle, python-wtforms, python2-wtforms): Move from here... * gnu/packages/python-web.scm: ...to here.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-web.scm151
-rw-r--r--gnu/packages/python.scm149
2 files changed, 150 insertions, 150 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b4b4a3db81..8b7bd0b8be 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
-;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
+;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
@@ -2291,3 +2291,152 @@ List. Forked from and using the same API as the publicsuffix package.")
(define-public python2-publicsuffix2
(package-with-python2 python-publicsuffix2))
+
+(define-public python-werkzeug
+ (package
+ (name "python-werkzeug")
+ (version "0.11.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Werkzeug" version))
+ (sha256
+ (base32
+ "1h5wycw8yj7q0grqsjnsqflmrlsdagvl2j4dsgdncci6mjc7fpa5"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "http://werkzeug.pocoo.org/")
+ (synopsis "Utilities for WSGI applications")
+ (description "One of the most advanced WSGI utility modules. It includes a
+powerful debugger, full-featured request and response objects, HTTP utilities to
+handle entity tags, cache control headers, HTTP dates, cookie handling, file
+uploads, a powerful URL routing system and a bunch of community-contributed
+addon modules.")
+ (license license:x11)))
+
+(define-public python2-werkzeug
+ (package-with-python2 python-werkzeug))
+
+(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))
+
+(define-public python-wtforms
+ (package
+ (name "python-wtforms")
+ (version "2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "WTForms" version ".zip"))
+ (sha256
+ (base32
+ "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-django-test
+ ;; Don't fail the tests when the inputs for the optional tests cannot be found.
+ (lambda _
+ (substitute*
+ "tests/runtests.py"
+ (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
+ (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
+ #t)))))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (home-page "http://wtforms.simplecodes.com/")
+ (synopsis
+ "Form validation and rendering library for Python web development")
+ (description
+ "WTForms is a flexible forms validation and rendering library
+for Python web development. It is very similar to the web form API
+available in Django, but is a standalone package.")
+ (license license:bsd-3)))
+
+(define-public python2-wtforms
+ (package-with-python2 python-wtforms))
+
+(define-public python-paste
+ (package
+ (name "python-paste")
+ (version "2.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Paste" version))
+ (sha256
+ (base32
+ "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3"))
+ (patches (search-patches "python-paste-remove-website-test.patch"
+ "python-paste-remove-timing-test.patch"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (propagated-inputs
+ `(("python-six" ,python-six)))
+ (home-page "http://pythonpaste.org")
+ (synopsis
+ "Python web development tools, focusing on WSGI")
+ (description
+ "Paste provides a variety of web development tools and middleware which
+can be nested together to build web applications. Paste's design closely
+follows ideas flowing from WSGI (Web Standard Gateway Interface).")
+ (license license:expat)))
+
+(define-public python2-paste
+ (package-with-python2 python-paste))
+
+(define-public python-pastescript
+ (package
+ (name "python-pastescript")
+ (version "2.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PasteScript" version))
+ (sha256
+ (base32
+ "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (propagated-inputs
+ `(("python-paste" ,python-paste)
+ ("python-pastedeploy" ,python-pastedeploy)))
+ (home-page "http://pythonpaste.org/script/")
+ (arguments
+ '(;; Unfortunately, this requires the latest unittest2,
+ ;; but that requires traceback2 which requires linecache2 which requires
+ ;; unittest2. So we're skipping tests for now.
+ ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
+ ;; so in theory we could get around this situation somehow.)
+ #:tests? #f))
+ (synopsis
+ "Pluggable command line tool for serving web applications and more")
+ (description
+ "PasteScript is a plugin-friendly command line tool which provides a
+variety of features, from launching web applications to bootstrapping project
+layouts.")
+ (license license:expat)))
+
+(define-public python2-pastescript
+ (package-with-python2 python-pastescript))
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4a2c9973e7..f10de230e9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7190,32 +7190,6 @@ timestamps.")
(define-public python2-pyrfc3339
(package-with-python2 python-pyrfc3339))
-(define-public python-werkzeug
- (package
- (name "python-werkzeug")
- (version "0.11.15")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Werkzeug" version))
- (sha256
- (base32
- "1h5wycw8yj7q0grqsjnsqflmrlsdagvl2j4dsgdncci6mjc7fpa5"))))
- (build-system python-build-system)
- (native-inputs
- `(("python-pytest" ,python-pytest)))
- (home-page "http://werkzeug.pocoo.org/")
- (synopsis "Utilities for WSGI applications")
- (description "One of the most advanced WSGI utility modules. It includes a
-powerful debugger, full-featured request and response objects, HTTP utilities to
-handle entity tags, cache control headers, HTTP dates, cookie handling, file
-uploads, a powerful URL routing system and a bunch of community-contributed
-addon modules.")
- (license license:x11)))
-
-(define-public python2-werkzeug
- (package-with-python2 python-werkzeug))
-
(define-public python-configobj
(package
(name "python-configobj")
@@ -7972,43 +7946,6 @@ python-xdo for newer bindings.)")
(define-public python2-xdo
(package-with-python2 python-xdo))
-(define-public python-wtforms
- (package
- (name "python-wtforms")
- (version "2.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "WTForms" version ".zip"))
- (sha256
- (base32
- "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
- (build-system python-build-system)
- (arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-django-test
- ;; Don't fail the tests when the inputs for the optional tests cannot be found.
- (lambda _
- (substitute*
- "tests/runtests.py"
- (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
- (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
- #t)))))
- (native-inputs
- `(("unzip" ,unzip)))
- (home-page "http://wtforms.simplecodes.com/")
- (synopsis
- "Form validation and rendering library for Python web development")
- (description
- "WTForms is a flexible forms validation and rendering library
-for Python web development. It is very similar to the web form API
-available in Django, but is a standalone package.")
- (license license:bsd-3)))
-
-(define-public python2-wtforms
- (package-with-python2 python-wtforms))
-
(define-public python-mako
(package
(name "python-mako")
@@ -8057,72 +7994,6 @@ server with very acceptable performance.")
(define-public python2-waitress
(package-with-python2 python-waitress))
-(define-public python-paste
- (package
- (name "python-paste")
- (version "2.0.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "Paste" version))
- (sha256
- (base32
- "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3"))
- (patches (search-patches "python-paste-remove-website-test.patch"
- "python-paste-remove-timing-test.patch"))))
- (build-system python-build-system)
- (native-inputs
- `(("python-nose" ,python-nose)))
- (propagated-inputs
- `(("python-six" ,python-six)))
- (home-page "http://pythonpaste.org")
- (synopsis
- "Python web development tools, focusing on WSGI")
- (description
- "Paste provides a variety of web development tools and middleware which
-can be nested together to build web applications. Paste's design closely
-follows ideas flowing from WSGI (Web Standard Gateway Interface).")
- (license license:expat)))
-
-(define-public python2-paste
- (package-with-python2 python-paste))
-
-(define-public python-pastescript
- (package
- (name "python-pastescript")
- (version "2.0.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "PasteScript" version))
- (sha256
- (base32
- "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
- (build-system python-build-system)
- (native-inputs
- `(("python-nose" ,python-nose)))
- (propagated-inputs
- `(("python-paste" ,python-paste)
- ("python-pastedeploy" ,python-pastedeploy)))
- (home-page "http://pythonpaste.org/script/")
- (arguments
- '(;; Unfortunately, this requires the latest unittest2,
- ;; but that requires traceback2 which requires linecache2 which requires
- ;; unittest2. So we're skipping tests for now.
- ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
- ;; so in theory we could get around this situation somehow.)
- #:tests? #f))
- (synopsis
- "Pluggable command line tool for serving web applications and more")
- (description
- "PasteScript is a plugin-friendly command line tool which provides a
-variety of features, from launching web applications to bootstrapping project
-layouts.")
- (license license:expat)))
-
-(define-public python2-pastescript
- (package-with-python2 python-pastescript))
-
(define-public python-pyquery
(package
(name "python-pyquery")
@@ -12358,26 +12229,6 @@ 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))
-
(define-public python-apispec
(package
(name "python-apispec")