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: <https://gitlab.com/inkscape/inkscape-docs/documentation/-/issues/43>,
     <https://github.com/scour-project/scour/issues/321>.

* gnu/packages/python-xyz.scm (python-scour): Add a maintenance note on
  the upstream status.
  [source] <url>: Switch to Inkscape's GitLab page.
  [build-system]: Use pyproject.
  [arguments] <test-backend>: 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
This commit is contained in:
Sharlatan Hellseher 2025-08-05 10:43:29 +01:00
parent 7809bebb39
commit ccd86b711f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5805,6 +5805,11 @@ any other callable) periodically at pre-determined intervals using a simple,
human-friendly syntax.") human-friendly syntax.")
(license license:expat))) (license license:expat)))
;; XXX: This project is unmaintained since 2020, see:
;; <https://github.com/scour-project/scour/issues/321>.
;;
;; The only user is Inkscape, see:
;; <https://gitlab.com/inkscape/inkscape-docs/documentation/-/issues/43>.
(define-public python-scour (define-public python-scour
(package (package
(name "python-scour") (name "python-scour")
@ -5814,21 +5819,27 @@ human-friendly syntax.")
(method git-fetch) (method git-fetch)
(uri (uri
(git-reference (git-reference
(url "https://github.com/scour-project/scour") (url "https://gitlab.com/inkscape/extras/scour")
(commit (commit
(string-append "v" version)))) (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k")))) (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 (propagated-inputs
(list python-six)) (list python-six))
(build-system python-build-system) (home-page "https://gitlab.com/inkscape/extras/scour")
(home-page "https://github.com/scour-project/scour")
(synopsis "Scour is an SVG optimizer/cleaner written in Python") (synopsis "Scour is an SVG optimizer/cleaner written in Python")
(description "The goal of Scour is to output a file that renders (description
identically at a fraction of the size by removing a lot of redundant "The goal of Scour is to output a file that renders identically at a
information created by most SVG editors. Optimization options are typically fraction of the size by removing a lot of redundant information created by
lossless but can be tweaked for more aggressive cleaning.") most SVG editors. Optimization options are typically lossless but can be
tweaked for more aggressive cleaning.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public python-mechanize (define-public python-mechanize