Date: Friday, April 7, 2023 @ 04:48:35
Author: felixonmars
Revision: 1440560
archrelease: copy trunk to community-staging-any
Added:
python-zict/repos/community-staging-any/
python-zict/repos/community-staging-any/PKGBUILD
(from rev 1440559, python-zict/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-zict/repos/community-staging-any/PKGBUILD (from rev 1440559,
python-zict/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 04:48:35 UTC (rev 1440560)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=zict
+pkgname=python-${_pkg}
+pkgver=2.2.0
+pkgrel=2
+pkgdesc="Useful Mutable Mappings"
+arch=(any)
+url="https://github.com/dask/zict/"
+license=(BSD)
+makedepends=(python-setuptools)
+depends=(python python-heapdict)
+checkdepends=(python-pytest python-lmdb python-psutil)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('d7366c2e2293314112dcf2432108428a67b927b00005619feefc310d12d833f3')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ pytest -vv --color=yes zict
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
--skip-build
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}