[arch-commits] Commit in (4 files)
Bruno Pagani
archange at archlinux.org
Mon Jul 27 23:26:25 UTC 2020
Date: Monday, July 27, 2020 @ 23:26:25
Author: archange
Revision: 665553
Initial addition of python-fsspec, required by dask
Added:
python-fsspec/
python-fsspec/repos/
python-fsspec/trunk/
python-fsspec/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: python-fsspec/trunk/PKGBUILD
===================================================================
--- python-fsspec/trunk/PKGBUILD (rev 0)
+++ python-fsspec/trunk/PKGBUILD 2020-07-27 23:26:25 UTC (rev 665553)
@@ -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