mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 08:02:38 -05:00
gnu: Add python-shellescape.
* gnu/packages/python-xyz.scm (python-shellescape): New variable.
This commit is contained in:
parent
5c3d81802d
commit
a78159547f
1 changed files with 37 additions and 1 deletions
|
@ -56,7 +56,7 @@
|
||||||
;;; Copyright © 2018, 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2018, 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
|
;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
|
||||||
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
|
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
|
||||||
;;; Copyright © 2018 Pjotr Prins <pjotr.guix@thebird.nl>
|
;;; Copyright © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
|
||||||
;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
|
;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
|
||||||
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
|
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
|
||||||
;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
|
;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
|
||||||
|
@ -16339,6 +16339,42 @@ (define-public python-arcp
|
||||||
externally identiyfing sub-resources referenced by hypermedia formats.")
|
externally identiyfing sub-resources referenced by hypermedia formats.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public python-shellescape
|
||||||
|
(package
|
||||||
|
(name "python-shellescape")
|
||||||
|
(version "3.8.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/chrissimpkins/shellescape")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0wzccxk139qx1lb2g70f5b2yh9zq15nr2mgvqdbfabg5zm0vf1qw"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(invoke "python" "tests/test_shellescape.py"))
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("python-pytest" ,python-pytest)))
|
||||||
|
(home-page "https://github.com/chrissimpkins/shellescape")
|
||||||
|
(synopsis
|
||||||
|
"Shell escape a string to safely use it as a token in a shell command")
|
||||||
|
(description
|
||||||
|
"The shellescape Python module defines the @code{shellescape.quote()}
|
||||||
|
function that returns a shell-escaped version of a Python string. This is a
|
||||||
|
backport of the @code{shlex.quote()} function from Python 3.8 that makes it
|
||||||
|
accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-validators
|
(define-public python-validators
|
||||||
(package
|
(package
|
||||||
(name "python-validators")
|
(name "python-validators")
|
||||||
|
|
Loading…
Reference in a new issue