Date: Wednesday, January 20, 2021 @ 22:39:41 Author: anthraxx Revision: 824023
addpkg: python-bidict 0.21.2-2 Added: python-bidict/ python-bidict/repos/ python-bidict/trunk/ python-bidict/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: python-bidict/trunk/PKGBUILD =================================================================== --- python-bidict/trunk/PKGBUILD (rev 0) +++ python-bidict/trunk/PKGBUILD 2021-01-20 22:39:41 UTC (rev 824023) @@ -0,0 +1,36 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Omar Pakker <archli...@opakker.nl> + +pkgname=python-bidict +_name=${pkgname#python-} +pkgver=0.21.2 +pkgrel=2 +pkgdesc='Bidirectional mapping library for Python' +url='https://bidict.readthedocs.org/' +arch=('any') +license=('MPL2') +depends=('python') +makedepends=('python-setuptools' 'python-pip' 'python-wheel') +checkdepends=('python-pytest' 'python-sphinx' 'python-sphinx-autodoc-typehints' 'python-pytest-benchmark' + 'python-hypothesis' 'python-py-cpuinfo') +source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz) +sha256sums=('4fa46f7ff96dc244abfc437383d987404ae861df797e2fd5b190e233c302be09') +b2sums=('6bc154cd49d33f9f144c0122175355327f16fbf3f701f751ecc0b65d335c78e5cb66126ef055545ec35a0b56a18efc4446a471477f9c2984f7c9a60cb80e2120') + +build() { + cd "bidict-${pkgver}" + python setup.py build +} + +check() { + cd "bidict-${pkgver}" + python setup.py test +} + +package() { + cd "bidict-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: