diff options
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 73 |
1 files changed, 47 insertions, 26 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1f82b8e3ea..b2be63df07 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17150,10 +17150,23 @@ the @code{sendfile(2)} system call.") (build-system pyproject-build-system) ;; Using Pytest instead of the Makefile causes the command line tests to ;; fail on unknown Pytest arguments. - (arguments (list #:test-flags #~(list "-k" "not TestCommandLineParser"))) - (native-inputs (list python-psutil python-pytest python-setuptools - python-wheel)) - (propagated-inputs (list python-pyopenssl python-pysendfile)) + (arguments + (list + #:test-flags + #~(list "-k" "not TestCommandLineParser" + #$@(if (target-aarch64?) + ;; TimeoutError: timed out + '((string-append "--deselect=pyftpdlib/test/test_functional.py" + "::TestTimeouts::test_idle_data_timeout2")) + '())))) + (native-inputs + (list python-psutil + python-pytest + python-setuptools + python-wheel)) + (propagated-inputs + (list python-pyopenssl + python-pysendfile)) (home-page "https://github.com/giampaolo/pyftpdlib/") (synopsis "Asynchronous and scalable Python FTP server library") (description "The Python FTP server library provides a high-level @@ -17186,33 +17199,41 @@ It has a flexible system of @samp{authorizers} able to manage both (source (origin (method git-fetch) - (uri (git-reference (url - "https://github.com/PyFilesystem/pyfilesystem2/") - (commit (string-append "v" version)))) + (uri (git-reference + (url "https://github.com/PyFilesystem/pyfilesystem2/") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) - (sha256 (base32 "1wrkhsv57kv4jcadn7w330mgbjjsimgzfvicni8cka6y1a8chbjs")))) + (sha256 + (base32 "1wrkhsv57kv4jcadn7w330mgbjjsimgzfvicni8cka6y1a8chbjs")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 1995 passed, 21 skipped, 411 deselected, 14 warnings + #:test-flags #~(list "-m" "not slow") #:tests? (and (not (%current-target-system)) (->bool (this-package-native-input "python-pytest"))) - #: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-six)) + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" "/tmp")))))) (native-inputs - ;; 'python-pyftpdlib' is needed for tests but it indirectly depends Rust, - ;; which is currently unavailable on aarch64-linux. Remove all the test - ;; dependencies in that case. - (if (and (not (%current-target-system)) - (supported-package? python-pyftpdlib)) - (list python-mock python-parameterized python-pyftpdlib - python-pytest python-setuptools) - '())) + (append + (list python-setuptools) + ;; 'python-pyftpdlib' is needed for tests but it indirectly depends Rust, + ;; which is currently unavailable on aarch64-linux. Remove all the test + ;; dependencies in that case. + (if (and (not (%current-target-system)) + (supported-package? python-pyftpdlib)) + (list python-mock + python-parameterized + python-pyftpdlib + python-pytest) + '()))) + (propagated-inputs + (list python-appdirs + python-pytz + python-six)) ;still hard itegrated (home-page "https://github.com/PyFilesystem/pyfilesystem2/") (synopsis "File system abstraction layer for Python") (description @@ -35265,13 +35286,13 @@ spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.") (define-public python-febelfin-coda (package (name "python-febelfin-coda") - (version "0.2.0") + (version "0.3.0") (source (origin (method url-fetch) (uri (pypi-uri "febelfin-coda" version)) (sha256 - (base32 "1isnf87gxlvfbmackv7b2c978vmnj7ij0v4svhyjl8pbb9hwjsvm")))) + (base32 "0qzv0irmpay2n46an0sa37c9kwy8108phij5ix6rkllrfjmqdpfw")))) (build-system python-build-system) (home-page "https://coda.b2ck.com/") (synopsis "Module to parse Belgian CODA files") |