python2-pathlib2-2.3.2 - required by python2 version of pytest (#1505)
This commit is contained in:
32
python2-pathlib2/PKGBUILD
Normal file
32
python2-pathlib2/PKGBUILD
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user