Date: Wednesday, November 6, 2019 @ 23:35:44 Author: felixonmars Revision: 524444
archrelease: copy trunk to community-staging-any Added: python-fs/repos/community-staging-any/ python-fs/repos/community-staging-any/PKGBUILD (from rev 524443, python-fs/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-fs/repos/community-staging-any/PKGBUILD (from rev 524443, python-fs/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2019-11-06 23:35:44 UTC (rev 524444) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-fs +pkgver=2.4.11 +pkgrel=2 +pkgdesc="Filesystem abstraction layer" +arch=('any') +license=('BSD') +url="https://pypi.python.org/pypi/fs/" +depends=('python-appdirs' 'python-pytz' 'python-setuptools' 'python-six') +checkdepends=('python-pytest-runner' 'fuse2' 'python-mock' 'python-pyftpdlib' 'python-psutil' + 'python-pysendfile') +source=("$pkgname-$pkgver.tar.gz::https://github.com/PyFilesystem/pyfilesystem2/archive/v$pkgver.tar.gz") +sha512sums=('fe4596bf213f9b1721cd3c665e6af180d6617eea07afbaa9d83847dc3f7dfe64bca16c8ccb337d48bbb49bf0d2fef90903e3c4aecc63f61faac6a2b6f6c59cf6') + +build() { + cd pyfilesystem2-$pkgver + python setup.py build +} + +check() { + cd pyfilesystem2-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" python setup.py pytest +} + +package() { + cd pyfilesystem2-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}