mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 02:59:17 -05:00
gnu: Add python-safety.
* gnu/packages/python-xyz.scm (python-safety): New variable. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
f2d70885c3
commit
c849446b82
1 changed files with 32 additions and 0 deletions
|
@ -21773,3 +21773,35 @@ (define-public python-dparse
|
||||||
(synopsis "Parser for Python dependency files")
|
(synopsis "Parser for Python dependency files")
|
||||||
(description "This package provides a parser for Python dependency files.")
|
(description "This package provides a parser for Python dependency files.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public python-safety
|
||||||
|
(package
|
||||||
|
(name "python-safety")
|
||||||
|
(version "1.9.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "safety" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'disable-tests
|
||||||
|
(lambda _
|
||||||
|
(substitute* "tests/test_safety.py"
|
||||||
|
;; requires network
|
||||||
|
(("def test_check_live") "def _test_check_live"))
|
||||||
|
#t)))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-click" ,python-click)
|
||||||
|
("python-dparse" ,python-dparse)
|
||||||
|
("python-packaging" ,python-packaging)
|
||||||
|
("python-requests" ,python-requests)))
|
||||||
|
(home-page "https://github.com/pyupio/safety")
|
||||||
|
(synopsis "Check installed dependencies for known vulnerabilities")
|
||||||
|
(description "Safety checks installed dependencies for known vulnerabilities.
|
||||||
|
By default it uses the open Python vulnerability database Safety DB.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
Loading…
Reference in a new issue