[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/37: gnu: Add python-rfc3986.
From: |
Marius Bakke |
Subject: |
17/37: gnu: Add python-rfc3986. |
Date: |
Wed, 28 Feb 2018 10:33:52 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 3e3302acc51aca4415b394b067e69249d3f11e06
Author: Marius Bakke <address@hidden>
Date: Wed Feb 28 00:02:53 2018 +0100
gnu: Add python-rfc3986.
* gnu/packages/python.scm (python-rfc3986, python2-rfc3986): New public
variables.
---
gnu/packages/python.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5c6bc7f..ee86751 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11500,6 +11500,48 @@ applying JSON Patches according to RFC 6902.")
(define-public python2-jsonpatch-0.4
(package-with-python2 python-jsonpatch-0.4))
+(define-public python-rfc3986
+ (package
+ (name "python-rfc3986")
+ (version "1.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "rfc3986" version))
+ (sha256
+ (base32
+ "06wlmysw83f75ff84zr1yr6n0shvc2xn1n1sb4iwzqap9hf5fn44"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:modules ((guix build utils)
+ (guix build python-build-system)
+ (ice-9 ftw)
+ (srfi srfi-1)
+ (srfi srfi-26))
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (let ((cwd (getcwd)))
+ (setenv "PYTHONPATH"
+ (string-append cwd "/build/"
+ (find (cut string-prefix? "lib" <>)
+ (scandir (string-append cwd
"/build")))
+ ":"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-v")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "https://rfc3986.readthedocs.io/")
+ (synopsis "Parse and validate URI references")
+ (description
+ "@code{rfc3986} is a Python implementation of address@hidden including
+validation and authority parsing. This module also supports address@hidden
+which adds support for zone identifiers to IPv6 addresses.")
+ (license license:asl2.0)))
+
+(define-public python2-rfc3986
+ (package-with-python2 python-rfc3986))
+
(define-public python-rfc3987
(package
(name "python-rfc3987")
- 22/37: gnu: python-oslo.i18n: Update to 3.19.0., (continued)
- 22/37: gnu: python-oslo.i18n: Update to 3.19.0., Marius Bakke, 2018/02/28
- 25/37: gnu: python-oslo.utils: Update to 3.35.0., Marius Bakke, 2018/02/28
- 24/37: gnu: python-oslo.config: Update to 5.2.0., Marius Bakke, 2018/02/28
- 11/37: gnu: Add python-openstackdocstheme., Marius Bakke, 2018/02/28
- 37/37: gnu: python-webencodings: Update to 0.5.1., Marius Bakke, 2018/02/28
- 27/37: gnu: python-oslo.context: Update to 2.20.0., Marius Bakke, 2018/02/28
- 12/37: gnu: python-mox3: Update to 0.24.0., Marius Bakke, 2018/02/28
- 20/37: gnu: Add python-gitpython., Marius Bakke, 2018/02/28
- 30/37: gnu: python-msgpack: Run the tests., Marius Bakke, 2018/02/28
- 35/37: gnu: python-netifaces: Update to 0.10.6., Marius Bakke, 2018/02/28
- 17/37: gnu: Add python-rfc3986.,
Marius Bakke <=
- 28/37: gnu: python-oslo.serialization: Update to 2.24.0., Marius Bakke, 2018/02/28
- 26/37: gnu: Add python-pyinotify., Marius Bakke, 2018/02/28
- 23/37: gnu: python-debtcollector: Update to 1.19.0., Marius Bakke, 2018/02/28
- 21/37: gnu: python-bandit: Update to 1.4.0., Marius Bakke, 2018/02/28
- 36/37: gnu: python-html5lib: Update to 1.0.1., Marius Bakke, 2018/02/28
- 32/37: gnu: python-oslo.log: Update to 3.36.0., Marius Bakke, 2018/02/28
- 29/37: gnu: python-msgpack: Update to 0.5.6., Marius Bakke, 2018/02/28
- 31/37: gnu: python-monotonic: Update to 1.4., Marius Bakke, 2018/02/28
- 19/37: gnu: Add python-gitdb., Marius Bakke, 2018/02/28
- 33/37: gnu: python-wrapt: Update to 1.10.11., Marius Bakke, 2018/02/28