Date: Wednesday, January 6, 2021 @ 14:28:12 Author: felixonmars Revision: 810842
addpkg: python-yg.lockfile 2.3-1 Added: python-yg.lockfile/ python-yg.lockfile/repos/ python-yg.lockfile/trunk/ python-yg.lockfile/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python-yg.lockfile/trunk/PKGBUILD =================================================================== --- python-yg.lockfile/trunk/PKGBUILD (rev 0) +++ python-yg.lockfile/trunk/PKGBUILD 2021-01-06 14:28:12 UTC (rev 810842) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-yg.lockfile +pkgver=2.3 +pkgrel=1 +pkgdesc="Lockfile object with timeouts and context manager" +url="https://github.com/yougov/yg.lockfile" +license=('MIT') +arch=('any') +depends=('python-zc.lockfile' 'python-tempora' 'python-jaraco') +makedepends=('python-setuptools-scm') +checkdepends=('python-pytest') +source=("https://github.com/yougov/yg.lockfile/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('938bde1795da7d48c11ee01212c0d24179e3b55f17b1a128010ee4304cb6931f87c4fabeccb4637b1cff932253c449c56ea809bd21cc1d131b47ed68e0a9d8af') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +build() { + cd yg.lockfile-$pkgver + python setup.py build +} + +check() { + cd yg.lockfile-$pkgver + python -m pytest +} + +package() { + cd yg.lockfile-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + # Will be available in next version + #install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}