python2-pathlib2-2.3.2 - required by python2 version of pytest (#1505)

This commit is contained in:
J. Peter Mugaas
2018-11-29 23:39:34 -06:00
committed by Алексей
parent 679de62df2
commit df6d53fabf

32
python2-pathlib2/PKGBUILD Normal file
View File

@@ -0,0 +1,32 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python2-pathlib2
pkgver=2.3.2
pkgrel=1
pkgdesc='Object-oriented filesystem paths'
arch=('any')
url='http://pypi.python.org/pypi/pathlib2'
license=('MIT')
depends=('python2-six' 'python2-scandir')
makedepends=('python2-setuptools')
checkdepends=('python2-pytest-runner' 'python2-mock')
source=("https://pypi.io/packages/source/p/pathlib2/pathlib2-$pkgver.tar.gz")
sha256sums=('8eb170f8d0d61825e09a95b38be068299ddeda82f35e96c3301a8a5e7604cb83')
build() {
cd pathlib2-$pkgver
python2 setup.py build
}
check() {
cd pathlib2-$pkgver
python2 setup.py pytest || warning "Tests failed"
}
package() {
cd pathlib2-$pkgver
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/python2-pathlib2/LICENSE.rst
}