python3.pkgs.ibis-framework: patch tests for arrow 18

This commit is contained in:
Phillip Cloud
2024-11-06 07:00:30 -05:00
parent 3bd5960a6c
commit 6c0def8319
@@ -54,11 +54,7 @@
typing-extensions,
}:
let
testBackends = [
"duckdb"
"sqlite"
"datafusion"
];
testBackends = [ "duckdb" "sqlite" ];
ibisTestingData = fetchFromGitHub {
name = "ibis-testing-data";
@@ -92,9 +88,17 @@ buildPythonPackage rec {
url = "https://github.com/ibis-project/ibis/commit/a54eceabac1d6592e9f6ab0ca7749e37a748c2ad.patch";
hash = "sha256-j5BPYVqnEF9GQV5N3/VhFUCdsEwAIOQC0KfZ5LNBSRg=";
})
# remove after the 10.0 release
(fetchpatch {
name = "ibis-framework-arrow-18.patch";
url = "https://github.com/ibis-project/ibis/commit/5dc549b22c2eca29a11a31fb29deef7c1466a204.patch";
hash = "sha256-4i/g2uixdlkbE6x659wzZJ91FZpzwOVkF6ZeXkiCP3I=";
excludes = [ "poetry.lock" "requirements-dev.txt" ];
})
];
nativeBuildInputs = [
build-system = [
poetry-core
poetry-dynamic-versioning
];
@@ -102,7 +106,7 @@ buildPythonPackage rec {
dontBypassPoetryDynamicVersioning = true;
env.POETRY_DYNAMIC_VERSIONING_BYPASS = lib.head (lib.strings.splitString "-" version);
propagatedBuildInputs = [
dependencies = [
atpublic
parsy
python-dateutil
@@ -128,13 +132,7 @@ buildPythonPackage rec {
pytest-xdist
] ++ lib.concatMap (name: optional-dependencies.${name}) testBackends;
dontUsePytestXdist = true;
pytestFlagsArray = [
"-m"
# tpcds and tpch are slow, so disable them
"'not tpcds and not tpch and (${lib.concatStringsSep " or " testBackends} or core)'"
];
pytestFlagsArray = [ "-m" "'${lib.concatStringsSep " or " testBackends} or core'" ];
disabledTests = [
# tries to download duckdb extensions