From ccd86b711f41a10f40b2af1d9c804876be7f04a2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 5 Aug 2025 10:43:29 +0100 Subject: [PATCH] gnu: python-scour: Switch to pyproject-build-system. This project is unmaintained since 2020, the only user is Inkscape, and the development has been moved to GitLab. See: , . * gnu/packages/python-xyz.scm (python-scour): Add a maintenance note on the upstream status. [source] : Switch to Inkscape's GitLab page. [build-system]: Use pyproject. [arguments] : Use 'custom. [native-inputs]: Add python-setuptools. [home-page]: Switch URL to Inkscape's GitLab page. [description]: Start from a new line, fix fill column. Change-Id: I56d94188b8a69a6739e5d2a5550bb0a3ee8b9247 --- gnu/packages/python-xyz.scm | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6551030b687..190bf75452c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5805,6 +5805,11 @@ any other callable) periodically at pre-determined intervals using a simple, human-friendly syntax.") (license license:expat))) +;; XXX: This project is unmaintained since 2020, see: +;; . +;; +;; The only user is Inkscape, see: +;; . (define-public python-scour (package (name "python-scour") @@ -5814,21 +5819,27 @@ human-friendly syntax.") (method git-fetch) (uri (git-reference - (url "https://github.com/scour-project/scour") - (commit - (string-append "v" version)))) + (url "https://gitlab.com/inkscape/extras/scour") + (commit + (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k")))) + (build-system pyproject-build-system) + (arguments + (list #:test-backend #~'custom + #:test-flags #~(list "test_scour.py"))) + (native-inputs + (list python-setuptools)) (propagated-inputs (list python-six)) - (build-system python-build-system) - (home-page "https://github.com/scour-project/scour") + (home-page "https://gitlab.com/inkscape/extras/scour") (synopsis "Scour is an SVG optimizer/cleaner written in Python") - (description "The goal of Scour is to output a file that renders -identically at a fraction of the size by removing a lot of redundant -information created by most SVG editors. Optimization options are typically -lossless but can be tweaked for more aggressive cleaning.") + (description + "The goal of Scour is to output a file that renders identically at a +fraction of the size by removing a lot of redundant information created by +most SVG editors. Optimization options are typically lossless but can be +tweaked for more aggressive cleaning.") (license license:asl2.0))) (define-public python-mechanize