Date: Thursday, April 6, 2023 @ 13:20:20
  Author: felixonmars
Revision: 1438847

archrelease: copy trunk to community-staging-any

Added:
  python-crate/repos/community-staging-any/
  python-crate/repos/community-staging-any/PKGBUILD
    (from rev 1438844, python-crate/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-crate/repos/community-staging-any/PKGBUILD (from rev 1438844, 
python-crate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 13:20:20 UTC (rev 1438847)
@@ -0,0 +1,30 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+
+_pyname=crate
+pkgname=python-$_pyname
+pkgver=0.27.2
+pkgrel=2
+pkgdesc='A Python client library for CrateDB'
+arch=(any)
+url="https://github.com/crate/crate-python";
+license=(Apache)
+depends=(python
+         python-urllib3)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools)
+optdepends=(python-sqlalchemy)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz";)
+sha256sums=('0a1e0edde9c7950f973bafabedc9e9b6b189c271251e9d3b52e6c9b84adfb7a5')
+
+build() {
+       cd "$_archive"
+       python -m build -wn
+}
+
+package() {
+       cd "$_archive"
+       python -m installer -d "$pkgdir" dist/*.whl
+       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+       install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" 
{CONTRIBUTING,DEVELOP,README}.rst
+}

Reply via email to