summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/prolog.scm4
-rw-r--r--gnu/packages/python-xyz.scm49
-rw-r--r--gnu/packages/video.scm16
3 files changed, 52 insertions, 17 deletions
diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm
index cf6700543c..4744f39579 100644
--- a/gnu/packages/prolog.scm
+++ b/gnu/packages/prolog.scm
@@ -185,7 +185,7 @@ it.")
(define-public trealla
(package
(name "trealla")
- (version "2.79.22")
+ (version "2.80.4")
(source
(origin
(method git-fetch)
@@ -194,7 +194,7 @@ it.")
(url "https://github.com/trealla-prolog/trealla")
(commit (string-append "v" version))))
(sha256
- (base32 "1fhk9lsj71a3l5j0dvn2qjmj85r2ixianjqlf5j5s4d7h08amm2y"))
+ (base32 "1sbfrzsjakfkbjvw8hl344l0cnf65nia8b7xxb6y7370k47mkil1"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(native-inputs
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 36869c5d19..e7b3b98c96 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34365,24 +34365,49 @@ facility for filtering those results.")
(define-public python-safety
(package
(name "python-safety")
- (version "1.9.0")
+ (version "3.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "safety" version))
(sha256
- (base32 "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
- (build-system python-build-system)
+ (base32 "1qzplv044yfr8w41h0qmjc8lj2admk029azsqbax70wzd4kzh858"))))
+ (build-system pyproject-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 (list python-click python-dparse python-packaging
- python-requests))
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; test_announcements fails with AssertionError.
+ (list "not test_announcements_if_is_not_tty"
+ ;; Tests below need a network connection.
+ "test_check_live"
+ "test_check_live_cached"
+ "test_get_packages_licenses_without_api_key")
+ " and not "))
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'set-home ; some tests run mkdir
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs (list nss-certs-for-test python-hatchling python-pytest))
+ (propagated-inputs (list python-authlib
+ python-click
+ python-dparse
+ python-filelock
+ python-httpx
+ python-jinja2
+ python-marshmallow
+ python-nltk
+ python-packaging
+ python-psutil
+ python-pydantic-2
+ python-requests
+ python-ruamel.yaml
+ python-safety-schemas
+ python-tenacity
+ python-tomli
+ python-tomlkit
+ python-typer
+ python-typing-extensions))
(home-page "https://github.com/pyupio/safety")
(synopsis "Check installed dependencies for known vulnerabilities")
(description
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index cbdb31e3fe..98cca568fc 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -3231,7 +3231,7 @@ YouTube.com and many more sites.")
(define-public yt-dlp
(package
(name "yt-dlp")
- (version "2025.06.30")
+ (version "2025.07.21")
(source
(origin
(method git-fetch)
@@ -3243,7 +3243,7 @@ YouTube.com and many more sites.")
(snippet '(substitute* "pyproject.toml"
(("^.*Programming Language :: Python :: 3\\.13.*$") "")))
(sha256
- (base32 "14pk2rk5vm9469ghkvciaz74fihbl8dfi27qj6xnxv71hpm5w03p"))))
+ (base32 "051y9pb2imdrpi065d9l2xfmd68l22ahbz90z81yqv7kv84j9mal"))))
(build-system pyproject-build-system)
(arguments
`(#:tests? ,(not (%current-target-system))
@@ -3277,7 +3277,17 @@ YouTube.com and many more sites.")
(replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
- (apply invoke "pytest" "-k" "not download" test-flags)))))))
+ (apply invoke "pytest"
+ "-k"
+ (string-append
+ "not download"
+ ;; TestHTTPRequestHandler tests are disabled due to
+ ;; https://github.com/yt-dlp/yt-dlp/issues/13927
+ " and not "
+ "test_incompleteread"
+ " and not "
+ "test_partial_read_then_full_read")
+ test-flags)))))))
(inputs (list ffmpeg python-brotli
python-certifi
python-mutagen