# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer:

_pkgname=volatile
pkgname=python-volatile
pkgver=2.1.0
pkgrel=5
pkgdesc="A small extension for the tempfile module"
arch=(any)
url="https://github.com/mbr/volatile"
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'git')
checkdepends=('python-pytest')
source=("git+$url.git#tag=$pkgver")
sha256sums=('77e8f2d657630bacbefc3a804ca4ff71772a430db87f78e03224a05565ee324c')
b2sums=('3855753fdca459a7a3e6ce7499cb3f49195e4980aae7ccfe622cb89fdeee48e1a207b82d94356306ddc6c1d21ae60df17b60490c245d3664bde6788312b6721f')

build(){
    cd "$_pkgname"
    python setup.py build
}

check() {
    cd "$_pkgname"
    PYTHONPATH=. pytest tests
}

package() {
    cd "$_pkgname"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
