mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-pure_protobuf: new aport
Python implementation of Protocol Buffers with dataclass-based schemaʼs https://pypi.org/project/pure-protobuf/
This commit is contained in:
parent
f48d2fbe08
commit
3ed9d31cc3
40
testing/py3-pure_protobuf/APKBUILD
Normal file
40
testing/py3-pure_protobuf/APKBUILD
Normal file
@ -0,0 +1,40 @@
|
||||
# Contributor: Jakob Meier <comcloudway@ccw.icu>
|
||||
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
|
||||
pkgname=py3-pure_protobuf
|
||||
# Also needs to be updated in the use_fixed_version.patch
|
||||
pkgver=2.3.0
|
||||
pkgrel=0
|
||||
pkgdesc="Python implementation of Protocol Buffers with dataclass-based schemaʼs "
|
||||
url="https://pypi.org/project/pure-protobuf/"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-typing-extensions"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-hatchling
|
||||
py3-poetry-core
|
||||
py3-wheel
|
||||
"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="
|
||||
https://github.com/eigenein/protobuf/archive/$pkgver/protobuf-$pkgver.tar.gz
|
||||
use_fixed_version.patch
|
||||
"
|
||||
builddir="$srcdir/protobuf-$pkgver"
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
60857977f56833262244cd6d406d1f021e1e7ebb78f5fd71276faaab37393a49d1dbdf8c9006933715dbc52e154c050fbabb139ff336cd1e3b4239dc8a3fdee1 protobuf-2.3.0.tar.gz
|
||||
bd2d1734bbb97fd0067c7a4b3c91ddada441a971f811e6b7a8b817d71a8223c44581a56cce93d2c948a3eee5c530af2ca59a065c09f5c1a5bbf98806aecb4b0e use_fixed_version.patch
|
||||
"
|
12
testing/py3-pure_protobuf/use_fixed_version.patch
Normal file
12
testing/py3-pure_protobuf/use_fixed_version.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -2,8 +2,8 @@
|
||||
name = "pure-protobuf"
|
||||
description = "Implementation of Protocol Buffers with dataclass-based schemaʼs"
|
||||
readme = "README.md"
|
||||
+version = "2.3.0"
|
||||
requires-python = ">=3.7"
|
||||
-dynamic = ["version"]
|
||||
keywords = ["protobuf", "protocol-buffers"]
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
Loading…
Reference in New Issue
Block a user