2 changed files with 1 additions and 33 deletions
@ -1,32 +0,0 @@
|
||||
# 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 |
||||
} |
Loading…
Reference in new issue