Skip to content

Commit

Permalink
python3.pkgs.ibis-framework: patch tests for arrow 18
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Nov 3, 2024
1 parent 92ac58c commit c210d70
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions pkgs/development/python-modules/ibis-framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@
typing-extensions,
}:
let
testBackends = [
"duckdb"
"sqlite"
"datafusion"
];
testBackends = [ "duckdb" "sqlite" ];

ibisTestingData = fetchFromGitHub {
name = "ibis-testing-data";
Expand Down Expand Up @@ -92,17 +88,25 @@ 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
];

dontBypassPoetryDynamicVersioning = true;
env.POETRY_DYNAMIC_VERSIONING_BYPASS = lib.head (lib.strings.splitString "-" version);

propagatedBuildInputs = [
dependencies = [
atpublic
parsy
python-dateutil
Expand All @@ -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
Expand Down

0 comments on commit c210d70

Please sign in to comment.