From 4e20fad9324f44090ae7d81fe8bdcf713012fe58 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 15 Jun 2025 15:53:00 +0200 Subject: [PATCH] gnu: epour: Improve style. * gnu/packages/enlightenment.scm (epour): Improve style. [source, native-inputs, inputs]: Run guix style. [arguments]: Run guix style. Rewrite using gexps. Change-Id: Ife6a56d269f2d1df20b7d9f6928e750c56f8355e Signed-off-by: Sharlatan Hellseher --- gnu/packages/enlightenment.scm | 42 ++++++++++++++++------------------ 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm index cf9fe93b27e..422b9c75f92 100644 --- a/gnu/packages/enlightenment.scm +++ b/gnu/packages/enlightenment.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2018 Timo Eisenmann ;;; Copyright © 2023 Maxim Cournoyer +;;; Copyright © 2025 Nicolas Graves ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,6 +27,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix utils) #:use-module (guix build-system meson) #:use-module (guix build-system python) @@ -562,30 +564,26 @@ directories. (name "epour") (version "0.7.0") (source - (origin - (method url-fetch) - (uri (string-append "https://download.enlightenment.org/rel/apps/epour" - "/epour-" version ".tar.xz")) - (sha256 - (base32 - "0g9f9p01hsq6dcf4cs1pwq95g6fpkyjgwqlvdjk1km1i5gj5ygqw")))) + (origin + (method url-fetch) + (uri (string-append "https://download.enlightenment.org/rel/apps/epour" + "/epour-" version ".tar.xz")) + (sha256 + (base32 "0g9f9p01hsq6dcf4cs1pwq95g6fpkyjgwqlvdjk1km1i5gj5ygqw")))) (build-system python-build-system) (arguments - `(#:tests? #f ; no test target - #:use-setuptools? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'find-theme-dir - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (substitute* "epour/gui/__init__.py" - (("join\\(data_path") - (string-append "join(\"" out "/share/epour\""))) - #t)))))) - (native-inputs - (list intltool python-distutils-extra)) - (inputs - (list libtorrent-rasterbar-1.2 python-dbus python-efl python-pyxdg)) + (list + #:tests? #f ;no test target + #:use-setuptools? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'find-theme-dir + (lambda _ + (substitute* "epour/gui/__init__.py" + (("join\\(data_path") + (string-append "join(\"" #$output "/share/epour\"")))))))) + (native-inputs (list intltool python-distutils-extra)) + (inputs (list libtorrent-rasterbar-1.2 python-dbus python-efl python-pyxdg)) (home-page "https://www.enlightenment.org") (synopsis "EFL Bittorrent client") (description "Epour is a BitTorrent client based on the @dfn{Enlightenment