File gnu/packages/python-xyz.scm changed (mode: 100644) (index 47ad101e4d..d98be1c3b8) |
86 |
86 |
;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com> |
;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com> |
87 |
87 |
;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com> |
;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com> |
88 |
88 |
;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz> |
;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz> |
|
89 |
|
;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de> |
89 |
90 |
;;; |
;;; |
90 |
91 |
;;; This file is part of GNU Guix. |
;;; This file is part of GNU Guix. |
91 |
92 |
;;; |
;;; |
|
... |
... |
validation of URIs (see RFC 3986) and IRIs (see RFC 3987).") |
15970 |
15971 |
(define-public python2-rfc3987 |
(define-public python2-rfc3987 |
15971 |
15972 |
(package-with-python2 python-rfc3987)) |
(package-with-python2 python-rfc3987)) |
15972 |
15973 |
|
|
|
15974 |
|
;; The latest commit contains fixes for building with both python3 and python2. |
|
15975 |
|
(define-public python-rfc6555 |
|
15976 |
|
(let ((commit "1a181b432312731f6742a5eb558dae4761d32361") |
|
15977 |
|
(revision "1")) |
|
15978 |
|
(package |
|
15979 |
|
(name "python-rfc6555") |
|
15980 |
|
(version (git-version "0.0.0" revision commit)) |
|
15981 |
|
(source (origin |
|
15982 |
|
(method git-fetch) |
|
15983 |
|
(uri (git-reference |
|
15984 |
|
(url "https://github.com/sethmlarson/rfc6555") |
|
15985 |
|
(commit commit))) |
|
15986 |
|
(file-name (git-file-name name version)) |
|
15987 |
|
(sha256 |
|
15988 |
|
(base32 |
|
15989 |
|
"1bxl17j9vs69cshcqnlwamr03hnykxqnwz3mdgi6x3s2k4q18npp")))) |
|
15990 |
|
(build-system python-build-system) |
|
15991 |
|
(arguments |
|
15992 |
|
'(#:phases |
|
15993 |
|
(modify-phases %standard-phases |
|
15994 |
|
(replace 'check |
|
15995 |
|
(lambda* (#:key tests? #:allow-other-keys) |
|
15996 |
|
(if tests? |
|
15997 |
|
;; Other tests require network access. |
|
15998 |
|
(invoke "pytest" "tests/test_ipv6.py") |
|
15999 |
|
#t)))))) |
|
16000 |
|
(native-inputs |
|
16001 |
|
`(("python-pytest" ,python-pytest))) |
|
16002 |
|
(home-page "https://pypi.org/project/rfc6555/") |
|
16003 |
|
(synopsis "Python implementation of RFC 6555") |
|
16004 |
|
(description |
|
16005 |
|
"Python implementation of the Happy Eyeballs Algorithm described in RFC |
|
16006 |
|
6555. Provided with a single file and dead-simple API to allow easy vendoring |
|
16007 |
|
and integration into other projects.") |
|
16008 |
|
(properties `((python2-variant . ,(delay python2-rfc6555)))) |
|
16009 |
|
(license license:asl2.0)))) |
|
16010 |
|
|
|
16011 |
|
(define-public python2-rfc6555 |
|
16012 |
|
(let ((base (package-with-python2 |
|
16013 |
|
(strip-python2-variant python-rfc6555)))) |
|
16014 |
|
(package |
|
16015 |
|
(inherit base) |
|
16016 |
|
(propagated-inputs |
|
16017 |
|
`(("python2-selectors2" ,python2-selectors2)))))) |
|
16018 |
|
|
15973 |
16019 |
(define-public python-validators |
(define-public python-validators |
15974 |
16020 |
(package |
(package |
15975 |
16021 |
(name "python-validators") |
(name "python-validators") |