From e1c3adb27d0a92607b5341f7b4352e6b1e89e685 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 10 May 2023 22:08:00 +0200 Subject: gnu: python-fsspec: Update to 2023.5.0. * gnu/packages/python-xyz.scm (python-fsspec): Update to 2023.5.0. [native-inputs]: Add python-pytest, python-pytest-mock, and python-numpy. [propagated-inputs]: Add python-aiohttp, python-libarchive-c, python-requests, and python-tqdm. [arguments]: Add phase to embed the correct version string; disable tests that need internet access. [build-system]: Use pyproject-build-system. [source]: Ftech sources with git to include tests. --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1acef6bc00..dd6fdf92a1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24787,16 +24787,38 @@ (define-public python-partd (define-public python-fsspec (package (name "python-fsspec") - (version "2022.5.0") + (version "2023.5.0") (source (origin - (method url-fetch) - (uri (pypi-uri "fsspec" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/fsspec/filesystem_spec") + (commit version))) + (file-name (git-file-name name version)) (sha256 (base32 - "1d43qiz8g395042a52yswz6j7q41gvrv3k53wvxn1rs4bk3mjm3s")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; there are none + "0c0brw5s4330rj0yjcrqi56hanvaahn43854jai70qzqg1qvyl88")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-version + (lambda _ + (substitute* "fsspec/__init__.py" + (("__version__ = .*") + (string-append "__version__ = \"" #$version "\""))) + (substitute* "setup.py" + (("versioneer.get_version\\(\\)") + (string-append "\"" #$version "\"")))))) + #:test-flags + '(list + ;; requires internet access + "--ignore=fsspec/implementations/tests/test_dbfs.py"))) + (propagated-inputs + (list python-aiohttp python-libarchive-c python-requests python-tqdm)) + (native-inputs + (list python-pytest python-pytest-mock python-numpy)) (home-page "https://github.com/intake/filesystem_spec") (synopsis "File-system specification") (description "The purpose of this package is to produce a template or -- cgit v1.2.3