Package Details: python-pure-protobuf 3.0.1-1

Git Clone URL: https://aur.archlinux.org/python-pure-protobuf.git (read-only, click to copy)
Package Base: python-pure-protobuf
Description: Python implementation of Protocol Buffers data types with dataclasses support.
Upstream URL: https://github.com/eigenein/protobuf
Keywords: google grpc protobuf protocolbuffer python
Licenses: MIT
Submitter: mufeed
Maintainer: VxlerieUwU
Last Packager: VxlerieUwU
Votes: 4
Popularity: 0.21
First Submitted: 2020-01-09 12:41 (UTC)
Last Updated: 2024-03-27 22:29 (UTC)

Dependencies (3)

Required by (2)

Sources (1)

Latest Comments

1 2 Next › Last »

simona commented on 2024-03-27 23:22 (UTC)

now ok

erholst commented on 2024-03-09 00:05 (UTC) (edited on 2024-03-09 00:33 (UTC) by erholst)

This PKGBUILD works:

pkgname=python-pure-protobuf
_gitname=protobuf
pkgver=3.0.1
pkgrel=1
pkgdesc='Python implementation of Protocol Buffers data types with dataclasses support.'
arch=('any')
url="https://github.com/eigenein/protobuf"
license=('MIT')
depends=('python')
makedepends=(
  git
  python-poetry-dynamic-versioning
)

source=("${_gitname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('d710a242e6e9cadc86dcaae2f28174477f76053bda501c077868fdd09597568eb52dbce02e4b463ef8cb3c9e2401d6754e333bec55614cfca1c7dc1cd7c211dd')

build() {
    cd "${srcdir}/${_gitname}-${pkgver}"
    POETRY_CACHE_DIR="${srcdir}/poetry-cache" POETRY_DYNAMIC_VERSIONING_BYPASS="${pkgver}" poetry build
}

package() {
  cd "${srcdir}/${_gitname}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
}

VxlerieUwU commented on 2024-03-03 23:38 (UTC)

I'll take care of it this week.

Kimiblock commented on 2024-03-03 13:17 (UTC)

➜  python-pure-protobuf git:(master) makepkg -sfi --nocheck
==> Making package: python-pure-protobuf 3.0.0-1 (Sun 03 Mar 2024 21:17:15 CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 3.0.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 70567    0 70567    0     0  70591      0 --:--:-- --:--:-- --:--:--  697k
==> Validating source files with sha512sums...
    3.0.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting 3.0.0.tar.gz with bsdtar
==> Starting build()...
/home/kimiblockmoe/Downloads/python-pure-protobuf/PKGBUILD: line 25: cd: /home/kimiblockmoe/Downloads/python-pure-protobuf/src/protobuf: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

SolarAquarion commented on 2024-03-03 01:57 (UTC)

yep, you need to clone it using git

Peter2469 commented on 2024-03-02 00:17 (UTC) (edited on 2024-03-02 00:34 (UTC) by Peter2469)

I had a look at the PKGBUILD and you removed the source because originally it uses git

All I did was update: source=("git+https://www.github.com/$_author/$_gitname#tag=$pkgver")

sha512sums=('SKIP')

and it works but ofc don't skip sha512sums if not required

patlefort commented on 2024-02-29 13:00 (UTC)

It doesn't build even fixing the directory. Did you even test it before pushing it?

simona commented on 2024-02-29 10:04 (UTC)

/home/simona/.cache/yay/python-pure-protobuf/PKGBUILD: riga 25: cd: /home/simona/.cache/yay/python-pure-protobuf/src/protobuf: File o directory not exist

patlefort commented on 2024-02-29 00:40 (UTC)

_gitname should be protobuf-3.0.0.