diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-11-06 22:55:04 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 20:19:04 +0000 |
commit | 0c57b542c047ee361ad0cd6fe9434ad62463ca6d (patch) | |
tree | 5d60d1396c88eb345c0f743157eea441360d027d | |
parent | 9f21e5b10194caee69115adcb7a4ca84f9709757 (diff) | |
download | guix-0c57b542c047ee361ad0cd6fe9434ad62463ca6d.tar.gz guix-0c57b542c047ee361ad0cd6fe9434ad62463ca6d.zip |
gnu: ytcc: Fix build.
* gnu/packages/video.scm (ytcc): Fix build and enable tests.
[source]: Swap to git checkout containing tests.
[arguments]<test-flags>: Disable some failing tests.
[inputs]: Remove python-urllib3-next; add python-urllib3.
[native-inputs]: Add python-pytest, python-setuptools, and python-wheel.
Change-Id: I93d958e2306544f51827308116e8a694058e9a9e
-rw-r--r-- | gnu/packages/video.scm | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 77fd9999aa..0cf7f19ea7 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -3361,20 +3361,38 @@ Both command-line and GTK2 interface are available.") (version "2.6.1") (source (origin - (method url-fetch) - (uri (pypi-uri "ytcc" version)) + (method git-fetch) ; no tests in PyPI + (uri (git-reference + (url "https://github.com/woefe/ytcc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "0laaj7m9mkn421hsljaqyhj2az641lg4y7ym6l8jl1xgs1vl9b4b")))) + (base32 "03rypw9sycardmrxc7hb0iak8zdxz1snv55fbpzyp79yi2iawbd4")))) (build-system pyproject-build-system) - (inputs (list python-click - python-wcwidth - python-websockets - python-urllib3-next - python-requests-next - python-pycryptodomex - python-mutagen - python-brotli - yt-dlp)) + (arguments + (list + #:test-flags + #~(list "-k" (string-append "not test_subscribe" + " and not test_bug_report_command" + " and not test_download" + " and not test_import" + " and not test_import_duplicate" + " and not test_play_video" + " and not test_update")))) + (native-inputs + (list python-pytest + python-setuptools + python-wheel)) + (inputs + (list python-click + python-wcwidth + python-websockets + python-urllib3 + python-requests-next + python-pycryptodomex + python-mutagen + python-brotli + yt-dlp)) (home-page "https://github.com/woefe/ytcc") (synopsis "Command line tool to keep track of your favorite playlists") (description "ytcc is a command line tool to keep track of your favorite |