From 4da229d777dab4e31b9e1f582635ea0590efb713 Mon Sep 17 00:00:00 2001 From: Clément Lassieur Date: Mon, 23 Jan 2023 16:40:12 +0100 Subject: gnu: woof: Update to 20220202. * gnu/packages/web.scm (woof): Update to 20220202. [source]: Change to Github. [arguments]: Update source path, change to python3, remove chmod. [inputs]: Change to python3. --- gnu/packages/web.scm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 6de462e921..b0bacf9982 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -13,7 +13,7 @@ ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner ;;; Copyright © 2016 Rene Saavedra ;;; Copyright © 2016 Ben Woodcroft -;;; Copyright © 2016 Clément Lassieur +;;; Copyright © 2016, 2023 Clément Lassieur ;;; Copyright © 2016, 2017 Nikita ;;; Copyright © 2016–2022 Arun Isaac ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice @@ -5026,15 +5026,16 @@ (define-public uhttpmock (define-public woof (package (name "woof") - (version "2012-05-31") + (version "20220202") (source (origin - (method url-fetch) - (uri (string-append - "http://www.home.unix-ag.org/simon/woof-" - version ".py")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/simon-budig/woof") + (commit (string-append name "-" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "0wjmjhpg6xlid33yi59j47q2qadz20sijrqsjahj30vngz856hyq")))) + "0rm8xs5dhy42jhjpx30vwnvps2rnmrh8scfr89j6dnihc6mpjkmn")))) (build-system trivial-build-system) (arguments '(#:modules ((guix build utils)) @@ -5047,11 +5048,10 @@ (define-public woof (python (assoc-ref %build-inputs "python"))) (mkdir-p bin) (with-directory-excursion bin - (copy-file source "woof") - (patch-shebang "woof" (list (string-append python "/bin"))) - (chmod "woof" #o555)) + (copy-file (in-vicinity source "woof") "woof") + (patch-shebang "woof" (list (string-append python "/bin")))) #t)))) - (inputs `(("python" ,python-2))) + (inputs (list python)) (home-page "http://www.home.unix-ag.org/simon/woof.html") (synopsis "Single file web server") (description "Woof (Web Offer One File) is a small simple web server that -- cgit v1.2.3