~ruther/guix-local

e2d6046754439ed1553645992b6155bb2f18bd7b — Sharlatan Hellseher 4 months ago 6e55c13
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
1 files changed, 14 insertions(+), 17 deletions(-)

M gnu/packages/protobuf.scm
M gnu/packages/protobuf.scm => gnu/packages/protobuf.scm +14 -17
@@ 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