gnu: offlate: Switch to pyproject.

* gnu/packages/python-xyz.scm (offlate):
[build-system]: Switch to pyproject-build-system.
[arguments, description]: Improve style.
[native-inputs]: Add python-setuptools-next.

Change-Id: I40c59c552950055cc7bea3d354f0eda246d56a71
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-06 17:07:02 +02:00 committed by Sharlatan Hellseher
parent 1a4c0024af
commit 5d3f193208
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -32619,50 +32619,49 @@ with features similar to the @command{wget} utility.")
(name "offlate")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://framagit.org/tyreunom/offlate")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1sx5cv8pamyw1m089b6x8ykaxdkx26jk9cblhbzlf0m3ckz52jik"))))
(build-system python-build-system)
(origin
(method git-fetch)
(uri (git-reference
(url "https://framagit.org/tyreunom/offlate")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1sx5cv8pamyw1m089b6x8ykaxdkx26jk9cblhbzlf0m3ckz52jik"))))
(build-system pyproject-build-system)
(arguments
;; No tests
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-before 'build 'generate-fonts
(lambda _
(invoke "make" "fonts")))
(add-before 'build 'generate-translations
(lambda _
(invoke "make" "update-langs"))))))
(list
#:tests? #f ; No tests.
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'generate-fonts
(lambda _
(invoke "make" "fonts")))
(add-before 'build 'generate-translations
(lambda _
(invoke "make" "update-langs"))))))
(propagated-inputs
(list python-android-stringslib
python-dateutil
python-gitlab
python-lxml
python-polib
python-pycountry
python-pyenchant
python-pygit2
python-pygithub
python-pyqt
python-requests
python-ruamel.yaml
python-translate-toolkit
python-translation-finder
python-watchdog))
(native-inputs
(list qttools-5 fontforge))
(list python-android-stringslib
python-dateutil
python-gitlab
python-lxml
python-polib
python-pycountry
python-pyenchant
python-pygit2
python-pygithub
python-pyqt
python-requests
python-ruamel.yaml
python-translate-toolkit
python-translation-finder
python-watchdog))
(native-inputs (list qttools-5 fontforge python-setuptools-next))
(home-page "https://framagit.org/tyreunom/offlate")
(synopsis "Offline translation interface for online translation tools")
(description "Offlate offers a unified interface for different translation
file formats, as well as many different online translation platforms. You can
use it to get work from online platforms, specialized such as the Translation
(description
"Offlate offers a unified interface for different translation file
formats, as well as many different online translation platforms. You can use
it to get work from online platforms, specialized such as the Translation
Project, or not such a gitlab instance when your upstream doesn't use any
dedicated platform. The tool proposes a unified interface for any format and
an upload option to send your work back to the platform.")