summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-science.scm54
1 files changed, 33 insertions, 21 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index e4d78062554..f51de6a21ac 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1995,6 +1995,8 @@ idea of the remaining amount of computation to be done.")
1995(define-public python-pandera 1995(define-public python-pandera
1996 (package 1996 (package
1997 (name "python-pandera") 1997 (name "python-pandera")
1998 ;; FIXME: The latest version requires hypothesis >= 6.92.7, which can't be
1999 ;; picked from python-hypothesis-next for some reason.
1998 (version "0.18.0") 2000 (version "0.18.0")
1999 (source 2001 (source
2000 (origin 2002 (origin
@@ -2005,34 +2007,43 @@ idea of the remaining amount of computation to be done.")
2005 (commit (string-append "v" version)))) 2007 (commit (string-append "v" version))))
2006 (file-name (git-file-name name version)) 2008 (file-name (git-file-name name version))
2007 (sha256 2009 (sha256
2008 (base32 "14b5aij5zjkwvsimg0v00qvp59mhhq7ljim4qghcn432vkg9gh47")) 2010 (base32 "14b5aij5zjkwvsimg0v00qvp59mhhq7ljim4qghcn432vkg9gh47"))))
2009 (modules '((guix build utils)))
2010 ;; These tests require PySpark and Modin. We need to remove the entire
2011 ;; directory, since the conftest.py in these directories contain
2012 ;; imports. (See: https://github.com/pytest-dev/pytest/issues/7452)
2013 (snippet '(begin
2014 (delete-file-recursively "tests/pyspark")
2015 (delete-file-recursively "tests/modin")))))
2016 (build-system pyproject-build-system) 2011 (build-system pyproject-build-system)
2017 (arguments 2012 (arguments
2018 (list 2013 (list
2019 #:test-flags '(list "-k" 2014 #:test-flags
2020 (string-append 2015 #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
2021 ;; Mypy functionality is experimental and relying 2016 "--ignore=tests/pyspark"
2022 ;; on pandas-stubs can lead to false 2017 "-k" (string-join
2023 ;; positives. These tests currently fail. 2018 ;; Failed: DID NOT RAISE <class 'pandera.errors.SchemaError'>
2024 "not test_python_std_list_dict_generics" 2019 (list "not test_from_records_validates_the_schema"
2025 " and not test_python_std_list_dict_empty_and_none" 2020 "test_init_pandas_dataframe_errors"
2026 " and not test_pandas_modules_importable" 2021 "test_schema_dtype_crs_without_coerce"
2027 " and not test_check_groups" 2022 "test_schema_from_dataframe"
2028 ;; This is a test failure due to unexpected error 2023 "test_schema_model"
2029 ;; message format. It is harmless. 2024 "test_validate_coerce_on_init"
2030 " and not test_pandas_stubs_false_positives")))) 2025 ;; multimethod.DispatchError: ('str_length: 0
2026 ;; methods found', (<class
2027 ;; 'pandas.core.series.Series'>, <class 'NoneType'>,
2028 ;; <class 'int'>), [])
2029 "test_succeeding"
2030 "test_failing"
2031 "test_failing_with_none"
2032 ;; pandera.errors.SchemaError: Error while executing
2033 ;; check function: KeyError("foo")
2034 "test_check_groups"
2035 ;; [pandas_series.py-plugin_mypy.ini-expected_errors13]
2036 ;; - assert 1 == 2
2037 "test_pandas_stubs_false_positives"
2038 ;; TypeError: type 'Series' is not subscriptable
2039 "test_pandas_modules_importable")
2040 " and not "))))
2031 ;; Pandera comes with a lot of extras. We test as many as possible, but do 2041 ;; Pandera comes with a lot of extras. We test as many as possible, but do
2032 ;; not include all of them in the propagated-inputs. Currently, we have to 2042 ;; not include all of them in the propagated-inputs. Currently, we have to
2033 ;; skip the pyspark and io tests due to missing packages python-pyspark 2043 ;; skip the pyspark and io tests due to missing packages python-pyspark
2034 ;; and python-frictionless. 2044 ;; and python-frictionless.
2035 (propagated-inputs (list python-hypothesis ;strategies extra 2045 (propagated-inputs (list python-hypothesis-next ;strategies extra
2046 python-modin
2036 python-multimethod 2047 python-multimethod
2037 python-numpy 2048 python-numpy
2038 python-packaging 2049 python-packaging
@@ -2049,6 +2060,7 @@ idea of the remaining amount of computation to be done.")
2049 python-pyarrow ;needed to run fastapi tests 2060 python-pyarrow ;needed to run fastapi tests
2050 python-pytest 2061 python-pytest
2051 python-pytest-asyncio 2062 python-pytest-asyncio
2063 python-pytest-xdist
2052 python-setuptools 2064 python-setuptools
2053 python-sphinx 2065 python-sphinx
2054 python-uvicorn ;needed to run fastapi tests 2066 python-uvicorn ;needed to run fastapi tests