From 44c6878f8e8fd8417210f169241b874095a9b141 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 18 Oct 2025 18:00:55 +0200 Subject: [PATCH] gnu: python-fs: Switch to pyproject. * gnu/packages/python-xyz.scm (python-fs): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: Id819a473d76ec77089128b7d9b9c0a9d2ba27473 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5263a9644de7db0ae84be35d0fb5d29b14c4b2a5..ac59c49b9734028f1ce648bad53b6b80d72874fb 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17215,11 +17215,13 @@ It has a flexible system of @samp{authorizers} able to manage both (version "2.4.16") (source (origin - (method url-fetch) - (uri (pypi-uri "fs" version)) - (sha256 - (base32 "04ykd7q49qgv13hl2n71lzihs2c9099r50lmd85vgx0k2bawg5xf")))) - (build-system python-build-system) + (method git-fetch) + (uri (git-reference (url + "https://github.com/PyFilesystem/pyfilesystem2/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "1wrkhsv57kv4jcadn7w330mgbjjsimgzfvicni8cka6y1a8chbjs")))) + (build-system pyproject-build-system) (arguments (list #:tests? (and (not (%current-target-system)) @@ -17239,15 +17241,16 @@ It has a flexible system of @samp{authorizers} able to manage both (if (and (not (%current-target-system)) (supported-package? python-pyftpdlib)) (list python-mock python-parameterized python-pyftpdlib - python-pytest) + python-pytest python-setuptools) '())) (home-page "https://github.com/PyFilesystem/pyfilesystem2/") (synopsis "File system abstraction layer for Python") - (description "PyFilesystem's @code{FS} object is a file system abstraction -sharing similarities with Python's own @code{file} object for single files. -It allows opening all the files under a given directory recursively, as a -single @code{FS} object. This enables, for example, counting the combined -number of lines in the contained files easily.") + (description + "PyFilesystem's @code{FS} object is a file system abstraction sharing +similarities with Python's own @code{file} object for single files. It allows +opening all the files under a given directory recursively, as a single +@code{FS} object. This enables, for example, counting the combined number of +lines in the contained files easily.") (license license:expat))) ;;; Tests are left out in the main package to avoid cycles.