Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 87 lines
Nix
at gcc-offload
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonAtLeast, pythonOlder, python, duckdb, hypothesis, pandas, pyarrow, poetry-core, pytest-remotedata, snapshottest, sqlalchemy, typing-extensions,}:
buildPythonPackage rec { pname = "duckdb-engine"; version = "0.13.4"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { repo = "duckdb_engine"; owner = "Mause"; rev = "refs/tags/v${version}"; hash = "sha256-B9vh8OILmRZKKznBbEkkm3zlAwGwMGdiuc378msiywE="; };
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ duckdb sqlalchemy ];
preCheck = '' export HOME="$(mktemp -d)" '';
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ hypothesis pandas pytest-remotedata typing-extensions pyarrow ] ++ lib.optionals (pythonOlder "3.12") [ # requires wasmer which is broken for python 3.12 # https://github.com/wasmerio/wasmer-python/issues/778 snapshottest ];
pytestFlagsArray = [ "-m" "'not remote_data'" ];
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ # requires snapshottest "duckdb_engine/tests/test_datatypes.py" ];
disabledTests = [ # incompatible with duckdb 1.1.1 "test_with_cache" ] ++ lib.optionals (python.pythonVersion == "3.11") [ # incompatible with duckdb 1.1.1 "test_all_types_reflection" "test_nested_types" ];
pythonImportsCheck = [ "duckdb_engine" ];
meta = with lib; { description = "SQLAlchemy driver for duckdb"; homepage = "https://github.com/Mause/duckdb_engine"; changelog = "https://github.com/Mause/duckdb_engine/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ cpcloud ]; };}