[arch-commits] Commit in python-fsspec/repos (community-any community-any/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Mon Jul 27 23:26:33 UTC 2020
Date: Monday, July 27, 2020 @ 23:26:33
Author: archange
Revision: 665554
archrelease: copy trunk to community-any
Added:
python-fsspec/repos/community-any/
python-fsspec/repos/community-any/PKGBUILD
(from rev 665553, python-fsspec/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-fsspec/repos/community-any/PKGBUILD (from rev 665553, python-fsspec/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-07-27 23:26:33 UTC (rev 665554)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=filesystem_spec
+pkgname=python-fsspec
+pkgver=0.7.4
+pkgrel=1
+pkgdesc="Specification that python filesystems should adhere to."
+arch=(any)
+url="https://github.com/intake/filesystem_spec"
+license=(MIT)
+makedepends=(python-setuptools)
+depends=(python)
+checkdepends=(
+ python-pytest
+ python-numpy
+)
+source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('35aa9775ed20b35f82de6d38fa28b6cd53f9e56e8dad727c0192f33c79b72959')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ # https://github.com/intake/filesystem_spec/issues/253
+ sed -i '/assert getpass.getuser() in stripped/d' fsspec/implementations/tests/test_local.py
+ pytest
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ # Install license file
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list