summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-29 09:02:00 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-31 13:27:01 +0000
commit98be8e7f1898c0732353a3eb5646523cf458991e (patch)
tree7c189bea97280faab45db48fb1154f7db3df9227
parent4e0906e98cf33eaaf4b9683885d0bea8d32a9304 (diff)
gnu: twitchy: Switch to pyproject.
* gnu/packages/video.scm (twitchy): [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Disable them. <#:phases>: Improve style, use gepxs, remove trailing #t. [native-inputs]: Add python-setuptools. Change-Id: Iff9a112e9ce0f6a9c541780033523aadc53b9d2d Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/video.scm48
1 files changed, 24 insertions, 24 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 82f30c14745..dfe7b77865a 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -3943,6 +3943,9 @@ and custom quantization matrices.")
3943from sites like Twitch.tv and pipes them into a video player of choice.") 3943from sites like Twitch.tv and pipes them into a video player of choice.")
3944 (license license:bsd-2))) 3944 (license license:bsd-2)))
3945 3945
3946;; XXX: This package has not been updated in 6 years, is related to an web
3947;; application and is not tested, it's most likely not working, but I haven't
3948;; tested it. Consider removal.
3946(define-public twitchy 3949(define-public twitchy
3947 (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag 3950 (let ((commit "9beb36d80b16662414129693e74fa3a2fd97554e")) ; 3.4 has no tag
3948 (package 3951 (package
@@ -3956,31 +3959,28 @@ from sites like Twitch.tv and pipes them into a video player of choice.")
3956 (commit commit))) 3959 (commit commit)))
3957 (file-name (git-file-name name version)) 3960 (file-name (git-file-name name version))
3958 (sha256 3961 (sha256
3959 (base32 3962 (base32 "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7"))))
3960 "0di03h1j9ipp2bbnxxlxz07v87icyg2hmnsr4s7184z5ql8kpzr7")))) 3963 (build-system pyproject-build-system)
3961 (build-system python-build-system)
3962 (arguments 3964 (arguments
3963 '(#:phases 3965 (list
3964 (modify-phases %standard-phases 3966 #:tests? #f ; No tests.
3965 (add-after 'unpack 'patch-paths 3967 #:phases
3966 (lambda* (#:key inputs #:allow-other-keys) 3968 #~(modify-phases %standard-phases
3967 (substitute* "twitchy/twitchy_play.py" 3969 (add-after 'unpack 'patch-paths
3968 (("\"streamlink ") 3970 (lambda* (#:key inputs #:allow-other-keys)
3969 (string-append "\"" (assoc-ref inputs "streamlink") 3971 (substitute* "twitchy/twitchy_play.py"
3970 "/bin/streamlink "))) 3972 (("\"streamlink ")
3971 #t)) 3973 (format #f "\"~a "
3972 (add-before 'check 'check-setup 3974 (search-input-file inputs "/bin/streamlink"))))))
3973 (lambda _ 3975 (add-before 'check 'check-setup
3974 (setenv "HOME" (getcwd)) ;Needs to write to ‘$HOME’. 3976 (lambda _
3975 #t)) 3977 (setenv "HOME" (getcwd)))) ;Needs to write to ‘$HOME’.
3976 (add-after 'install 'install-rofi-plugin 3978 (add-after 'install 'install-rofi-plugin
3977 (lambda* (#:key outputs #:allow-other-keys) 3979 (lambda _
3978 (install-file "plugins/rofi-twitchy" 3980 (install-file "plugins/rofi-twitchy"
3979 (string-append (assoc-ref outputs "out") 3981 (string-append #$output "/bin")))))))
3980 "/bin")) 3982 (native-inputs (list python-setuptools))
3981 #t))))) 3983 (inputs (list python-requests streamlink))
3982 (inputs
3983 (list python-requests streamlink))
3984 (home-page "https://github.com/BasioMeusPuga/twitchy") 3984 (home-page "https://github.com/BasioMeusPuga/twitchy")
3985 (synopsis "Command-line interface for Twitch.tv") 3985 (synopsis "Command-line interface for Twitch.tv")
3986 (description 3986 (description