You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
958 B

# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-filelock
pkgver=3.4.0
pkgrel=3
pkgdesc="A platform independent file lock"
url="https://github.com/benediktschmitt/py-filelock"
license=('custom:Unlicense')
arch=('any')
depends=('python')
makedepends=('python-setuptools' 'python-setuptools-scm')
checkdepends=('python-pytest' 'python-pytest-timeout')
source=("$pkgname-$pkgver.tar.gz::https://github.com/benediktschmitt/py-filelock/archive/$pkgver.tar.gz")
sha512sums=('0dc85f083a8c60605dfbd0b6fe55a96b5872e5b8ce3fd746925444571d02e243459bed6cd2d8aa9d7eda7d197bdc31b289cfcf1f0aef295779ca900d24abcbd8')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd py-filelock-$pkgver
python setup.py build
}
check() {
cd py-filelock-$pkgver
PYTHONPATH=src pytest tests
}
package() {
cd py-filelock-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}