From 3ed9d31cc34df1c33cfc84ba77d67d348f8772a5 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sun, 29 Oct 2023 07:41:07 +0100 Subject: [PATCH] testing/py3-pure_protobuf: new aport MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python implementation of Protocol Buffers with dataclass-based schemaʼs https://pypi.org/project/pure-protobuf/ --- testing/py3-pure_protobuf/APKBUILD | 40 +++++++++++++++++++ .../py3-pure_protobuf/use_fixed_version.patch | 12 ++++++ 2 files changed, 52 insertions(+) create mode 100644 testing/py3-pure_protobuf/APKBUILD create mode 100644 testing/py3-pure_protobuf/use_fixed_version.patch diff --git a/testing/py3-pure_protobuf/APKBUILD b/testing/py3-pure_protobuf/APKBUILD new file mode 100644 index 00000000000..56e70c2f7c2 --- /dev/null +++ b/testing/py3-pure_protobuf/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Jakob Meier +# Maintainer: Jakob Meier +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 +" diff --git a/testing/py3-pure_protobuf/use_fixed_version.patch b/testing/py3-pure_protobuf/use_fixed_version.patch new file mode 100644 index 00000000000..3b61cd91c8f --- /dev/null +++ b/testing/py3-pure_protobuf/use_fixed_version.patch @@ -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",