diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-28 22:33:20 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 14:26:17 +0000 |
| commit | 8d5ab7e3407cf249be770310a3061db89246eece (patch) | |
| tree | b9e45eedd0e7aed63eb0b7763b4b3633ac17390d /gnu | |
| parent | 72573dd179cec214d7e4d4be4c703f478e6ff1bf (diff) | |
gnu: pagekite: Switch to pyproject.
* gnu/packages/networking.scm (pagekite):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style, use gexps.
<#:phases>: Refresh phase 'install-man-page. Replace 'check phase.
<#:tests?>: Disable them.
[native-inputs]: Add perl (required to run tests), python-setuptools.
Change-Id: I4667440c298ae17f048b1c7659cc23c4f4d1d990
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/networking.scm | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 663bde99d3..969d7fa030 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -4636,18 +4636,23 @@ module @code{batman-adv}, for Layer 2.") (file-name (git-file-name name version)) (sha256 (base32 "1v14pafdd2nzd63kpf7aijpqf5dribxij3ynx5q1232y1ci4wf14")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'install 'install-man-page - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (man (string-append out "/share/man"))) - (invoke "make" "doc/pagekite.1") - (install-file "doc/pagekite.1" (string-append man "/man1")))))))) - (inputs - (list python-six python-socksipychain)) + (list + #:tests? #f ; Tests require extensive configuration. + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-man-page + (lambda _ + (invoke "make" "doc/pagekite.1") + (install-file "doc/pagekite.1" + (string-append #$output "/share/man/man1")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list perl python-setuptools)) + (inputs (list python-six python-socksipychain)) (home-page "https://pagekite.net/") (synopsis "Make localhost servers publicly visible") (description |
