diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-12-20 23:23:23 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-01-10 11:44:42 -0500 |
commit | b794dff00a86f2ba8b1dc200525f7da450671ac5 (patch) | |
tree | ab847ab6a01dce58d7af673da5a1058a7a0cdaeb /gnu/packages/python-xyz.scm | |
parent | 32f1ae36160a662035e41784f5320a65d5bf57f9 (diff) | |
download | guix-b794dff00a86f2ba8b1dc200525f7da450671ac5.tar.gz |
gnu: Add python-fs.
* gnu/packages/python-xyz.scm (python-fs): New variable.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b4cb6180ef..eebcb2bc6e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10588,6 +10588,38 @@ It has a flexible system of @samp{authorizers} able to manage both @end itemize") (license license:expat))) +(define-public python-fs + (package + (name "python-fs") + (version "2.4.14") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fs" version)) + (sha256 + (base32 "0v5kqzi0vd8ar4j4qf5440nzwa9dcagpxb3q6k0cln4cqlmxqmcm")))) + (build-system python-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (invoke "pytest" "-m" "not slow"))))))) + (propagated-inputs + (list python-appdirs python-pytz python-typing python-six)) + (native-inputs + (list python-mock python-parameterized python-pyftpdlib python-pytest)) + (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.") + (license license:expat))) + (define-public python-fonttools (package (name "python-fonttools") |