gnu: python-pure-protobuf: Update to 3.1.5.

* gnu/packages/protobuf.scm (python-pure-protobuf): Update to 3.1.5.
[build-system]: Switch to pyproject-build-system.
[arguments] <build-backend>: Use "poetry.core.masonry.api".
[native-inputs]: Remove python-flake8 and python-isort; add
python-poetry-core, python-poetry-dynamic-versioning, python-pydantic-2,
and python-pytest-benchmark.

Change-Id: Ie43a664a862377629c05a0dc921d06495b1d1b4c
This commit is contained in:
Sharlatan Hellseher 2025-10-26 10:33:31 +00:00
parent 6e55c13795
commit e2d6046754
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -584,30 +584,27 @@ mechanism for serializing structured data.")
(define-public python-pure-protobuf
(package
(name "python-pure-protobuf")
(version "2.0.1")
(version "3.1.5")
(source
(origin
;; The PyPI tarball is broken: it has no tests.
(method git-fetch)
(uri (git-reference
(url "https://github.com/eigenein/protobuf")
(commit version)))
(url "https://github.com/eigenein/protobuf")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "15dp5pvazd0jx4wzzh79080ah7hkpd3axh40al9vhzs2hf3v90hx"))))
(build-system python-build-system)
(native-inputs
(list python-flake8 python-pytest python-pytest-cov python-isort))
(base32 "1ab665h5nmvg52zqdaa0pnmvimh6m6zis2l2vz3lqjd0jqm5zghs"))))
(build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "--cov-report" "term-missing" "--cov"
"pure_protobuf")
(invoke "flake8" "pure_protobuf" "tests"
"--ignore=F541")
(invoke "isort" "-rc" "-c" "pure_protobuf" "tests"))))))
(list
#:build-backend "poetry.core.masonry.api"))
(native-inputs
(list python-poetry-core
python-poetry-dynamic-versioning
python-pydantic-2
python-pytest
python-pytest-benchmark
python-pytest-cov))
(home-page "https://pypi.org/project/pure-protobuf/")
(synopsis "Protobuf implementation using dataclasses")
(description