gnu: python-pyjanitor: Fix build.

* gnu/packages/python-science.scm (python-pyjanitor): Fix build.
[propagated-inputs]: Add python-requests.
[native-inputs]: Remove python-wheel.
[arguments] <#:test-flags>: Disable failing test.

Change-Id: I74b40149a3b87f0e748d79be2aae9978fa18de52
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Hugo Buddelmeijer 2025-09-26 22:12:08 +02:00 committed by Sharlatan Hellseher
parent 5ea8115afe
commit 521e1bd140
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3930,19 +3930,25 @@ production-critical data pipelines or reproducible research settings. With
;; marked turtle can be skipped using "-m" "not turtle". ;; marked turtle can be skipped using "-m" "not turtle".
(arguments (arguments
(list (list
#:test-flags '(list ;; tests: 1042 passed, 2 skipped, 2 deselected, 45 xfailed, 6 xpassed,
"-n" (number->string (parallel-job-count)) ;; 735 warnings
;; Tries to connect to the internet. #:test-flags
"-k" (string-append "not test_is_connected" ;; The tests take quite long, so consider adding the "-n" line and
;; Test files are not included ;; adding python-pytest-xdist to the native-inputs when testing.
" and not test_read_commandline_bad_cmd") ;; However, the tests are not deterministic when ran with -n, so
;; Test files are not included ;; disable again before committing.
#~(list ;; "-n" (number->string (parallel-job-count))
;; Test files are not included.
"--ignore=tests/io/test_read_csvs.py" "--ignore=tests/io/test_read_csvs.py"
;; Polars has not been packaged yet. ;; Polars has not been packaged yet.
"--ignore=tests/polars" "--ignore=tests/polars"
;; PySpark has not been packaged yet. ;; PySpark has not been packaged yet.
"--ignore=tests/spark/functions/test_clean_names_spark.py" "--ignore=tests/spark/functions/test_clean_names_spark.py"
"--ignore=tests/spark/functions/test_update_where_spark.py") "--ignore=tests/spark/functions/test_update_where_spark.py"
;; Tries to connect to the internet.
"-k" (string-append "not test_is_connected"
;; Test files are not included.
" and not test_read_commandline_bad_cmd"))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'check 'set-env-ci (add-before 'check 'set-env-ci
@ -3950,20 +3956,22 @@ production-critical data pipelines or reproducible research settings. With
;; Some tests are skipped if the JANITOR_CI_MACHINE ;; Some tests are skipped if the JANITOR_CI_MACHINE
;; variable is not set. ;; variable is not set.
(setenv "JANITOR_CI_MACHINE" "1")))))) (setenv "JANITOR_CI_MACHINE" "1"))))))
;; TODO: Remove python-requests and inject its target data to make the
;; package behaviour reproducible.
(propagated-inputs (list python-multipledispatch (propagated-inputs (list python-multipledispatch
python-natsort python-natsort
python-pandas-flavor python-pandas-flavor
python-requests
python-scipy python-scipy
;; Optional imports. ;; Optional imports.
python-biopython ;biology submodule python-biopython ;biology submodule
python-unyt)) ;engineering submodule python-unyt)) ;engineering submodule
(native-inputs (list python-pytest (native-inputs (list python-pytest
python-pytest-xdist ;;python-pytest-xdist ;only for -n when testing
python-setuptools
;; Optional imports. We do not propagate them due to ;; Optional imports. We do not propagate them due to
;; their size. ;; their size.
python-numba ;speedup of joins python-numba ;speedup of joins
python-setuptools
python-wheel
rdkit)) ;chemistry submodule rdkit)) ;chemistry submodule
(home-page "https://github.com/pyjanitor-devs/pyjanitor") (home-page "https://github.com/pyjanitor-devs/pyjanitor")
(synopsis "Tools for cleaning and transforming pandas DataFrames") (synopsis "Tools for cleaning and transforming pandas DataFrames")