gnu: Add perl-uri-escape.

* gnu/packages/perl-web.scm (perl-uri-escape): New public variable.
This commit is contained in:
Oleg Pykhalov 2018-03-22 05:20:42 +03:00
parent 786d3de297
commit e0de023eae
No known key found for this signature in database
GPG key ID: 7246E11C69B79569

View file

@ -21,6 +21,7 @@ (define-module (gnu packages perl-web)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages perl-check)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system perl)) #:use-module (guix build-system perl))
@ -46,3 +47,26 @@ (define-public perl-mojolicious
used are outdated now, the idea behind it is not. Mojolicious is a new used are outdated now, the idea behind it is not. Mojolicious is a new
endeavor to implement this idea using modern technologies.") endeavor to implement this idea using modern technologies.")
(license license:artistic2.0))) (license license:artistic2.0)))
(define-public perl-uri-escape
(package
(name "perl-uri-escape")
(version "1.73")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/URI-"
version ".tar.gz"))
(sha256
(base32
"04z4xwiryrbxxi48bwbkgq9q9pwfgqry3wp0ramcrwv3dx5ap9yc"))))
(build-system perl-build-system)
(native-inputs
`(("perl-test-needs" ,perl-test-needs)))
(home-page "https://github.com/libwww-perl/URI")
(synopsis "Percent-encode and percent-decode unsafe characters")
(description "This module provides functions to percent-encode and
percent-decode URI strings as defined by RFC 3986. Percent-encoding URI's is
informally called URI escaping. This is the terminology used by this module,
which predates the formalization of the terms by the RFC by several years.")
(license license:perl-license)))