gnu: python-openstep-plist: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-openstep-plist):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove 'check phase replacement.
[native-inputs]: Add python-setuptools, python-wheel.

Signed-off-by: jgart <jgart@dismail.de>
This commit is contained in:
Nicolas Graves 2025-08-25 00:40:53 +02:00 committed by jgart
parent fcca14d261
commit e140cf22d0
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -17568,38 +17568,35 @@ reading and writing MessagePack data.")
#t)))))))) #t))))))))
(define-public python-openstep-plist (define-public python-openstep-plist
(package (package
(name "python-openstep-plist") (name "python-openstep-plist")
(version "0.3.0") (version "0.3.0")
(home-page "https://github.com/fonttools/openstep-plist") (home-page "https://github.com/fonttools/openstep-plist")
(source (origin (source
(method git-fetch) (origin
(uri (git-reference (method git-fetch)
(url home-page) (uri (git-reference
(commit (string-append "v" version)))) (url home-page)
(file-name (git-file-name name version)) (commit (string-append "v" version))))
(sha256 (file-name (git-file-name name version))
(base32 (sha256
"1rxjgzh0p069ncsr2986rn32vhdqyq35irbqg2559jh18456mkca")))) (base32 "1rxjgzh0p069ncsr2986rn32vhdqyq35irbqg2559jh18456mkca"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:phases (list
#~(modify-phases %standard-phases #:phases
(add-after 'unpack 'pretend-version #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'pretend-version
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" (lambda _
#$(package-version this-package)))) (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
(replace 'check #$(package-version this-package)))))))
(lambda* (#:key tests? #:allow-other-keys) (native-inputs (list python-cython python-pytest python-setuptools-scm
(when tests? python-setuptools python-wheel))
(invoke "pytest" "-vv"))))))) (synopsis "OpenStep plist parser and writer")
(native-inputs (description
(list python-cython python-pytest python-setuptools-scm)) "This package provides a parser for the \"old style\" OpenStep property
(synopsis "OpenStep plist parser and writer")
(description
"This package provides a parser for the \"old style\" OpenStep property
list format (also known as ASCII plist), written in Cython.") list format (also known as ASCII plist), written in Cython.")
(license license:expat))) (license license:expat)))
(define-public python-wrapt (define-public python-wrapt
(package (package