# Maintainer: Felix Yan <felixonmars@archlinux.org>

#included in Slint by Didier Spaier didieratslintdotfr

pkgname=python-deprecation
pkgver=2.1.0
pkgrel=2slint
slackdesc="$kgname (A library to handle automated deprecations)"
license=('Apache')
url="https://deprecation.readthedocs.io"
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/d/deprecation/deprecation-$pkgver.tar.gz")
sha512sums=('c184665d210c6eeb3f055b23e75c3714f3b18050e03bfe1384baf6c2504f1370116ae0e8c53ff818ccc54c0d633bbb3ba5791fe20b8029f3be0207b019a00275')
docs=("LICENSE" "README.rst" "PKG-INFO")
build() {
  cd deprecation-$pkgver
  sed -i 's/unittest2/unittest/g' tests/*.py
  export LC_CTYPE=en_US.UTF-8
  python3 setup.py build
  python3 -m unittest discover
  python3 setup.py install --root="$PKG" --optimize=1
}
