# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python2-backports.os
pkgver=0.1.1
pkgrel=2
pkgdesc="Backport of new features in Python's os module"
arch=('any')
url="https://github.com/pjdelport/backports.os"
license=('PSF')
depends=('python2-backports' 'python2-future')
makedepends=('python2-setuptools-scm')
checkdepends=('python2-hypothesis' 'python2-pytest-runner')
source=("https://pypi.io/packages/source/b/backports.os/backports.os-$pkgver.tar.gz")
sha256sums=('b472c4933094306ca08ec90b2a8cbb50c34f1fb2767775169a1c1650b7b74630')

check() {
  cd backports.os-$pkgver
  python2 setup.py pytest
}

package() {
  cd backports.os-$pkgver
  python2 setup.py install --root="$pkgdir" --optimize=1

  rm "$pkgdir"/usr/lib/python2.7/site-packages/backports/__init__.py*
}
