diff options
Diffstat (limited to 'pkgs/development/python-modules/duckdb-engine/default.nix')
-rw-r--r-- | pkgs/development/python-modules/duckdb-engine/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/duckdb-engine/default.nix b/pkgs/development/python-modules/duckdb-engine/default.nix index 32c0d20b6beb9..1282fdfc9952d 100644 --- a/pkgs/development/python-modules/duckdb-engine/default.nix +++ b/pkgs/development/python-modules/duckdb-engine/default.nix @@ -3,19 +3,21 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, + pythonAtLeast, pythonOlder, duckdb, hypothesis, pandas, poetry-core, pytest-remotedata, + snapshottest, sqlalchemy, typing-extensions, }: buildPythonPackage rec { pname = "duckdb-engine"; - version = "0.12.1"; + version = "0.13.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -24,7 +26,7 @@ buildPythonPackage rec { repo = "duckdb_engine"; owner = "Mause"; rev = "refs/tags/v${version}"; - hash = "sha256-+l6sRZHJnLfei1LR8WHqpC+0+91VLYKXn2e0w9+QRyk="; + hash = "sha256-6aVVs3ii8pJOSaLx0maoFmiMvbUh/LOdizmPSpqPiM4="; }; nativeBuildInputs = [ poetry-core ]; @@ -45,6 +47,10 @@ buildPythonPackage rec { pandas pytest-remotedata typing-extensions + ] ++ lib.optionals (pythonOlder "3.12") [ + # requires wasmer which is broken for python 3.12 + # https://github.com/wasmerio/wasmer-python/issues/778 + snapshottest ]; pytestFlagsArray = [ @@ -52,6 +58,11 @@ buildPythonPackage rec { "'not remote_data'" ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ + # requires snapshottest + "duckdb_engine/tests/test_datatypes.py" + ]; + pythonImportsCheck = [ "duckdb_engine" ]; meta = with lib; { |