Date: Thursday, April 6, 2023 @ 02:33:40 Author: felixonmars Revision: 1438104
archrelease: copy trunk to community-staging-any Added: python-partd/repos/community-staging-any/ python-partd/repos/community-staging-any/PKGBUILD (from rev 1438102, python-partd/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: python-partd/repos/community-staging-any/PKGBUILD (from rev 1438102, python-partd/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2023-04-06 02:33:40 UTC (rev 1438104) @@ -0,0 +1,48 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=partd +pkgname=python-${_pkg} +pkgver=1.3.0 +pkgrel=2 +pkgdesc="Concurrent appendable key-value storage" +arch=(any) +url="https://github.com/dask/partd" +license=(BSD) +makedepends=(python-setuptools) +depends=( + python + python-locket + python-toolz +) +optdepends=( + python-blosc + python-numpy + python-pandas + python-pyzmq +) +checkdepends=( + python-pytest + python-blosc + python-numpy + python-pandas + python-pyzmq +) +source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz) +sha256sums=('ce91abcdc6178d668bcaa431791a5a917d902341cb193f543fe445d494660485') + +build() { + cd ${_pkg}-${pkgver} + python setup.py build +} + +check() { + cd ${_pkg}-${pkgver} + PYTHONPATH="${PWD}"/build/lib pytest +} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + # Install license file + install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +}