Skip to content

Commit

Permalink
Merge pull request NixOS#216327 from cpcloud/duckdb-0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault authored Feb 19, 2023
2 parents 01a88ed + adafc04 commit 48d298f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
40 changes: 25 additions & 15 deletions pkgs/development/libraries/duckdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
, openssl
, openjdk11
, unixODBC
, withHttpFs ? true
, withJdbc ? false
, withOdbc ? false
}:
Expand All @@ -17,35 +16,47 @@ let
in
stdenv.mkDerivation rec {
pname = "duckdb";
version = "0.6.1";
version = "0.7.0";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-no4fcukEpzKmh2i41sdXGDljGhEDkzk3rYBATqlq6Gw=";
sha256 = "sha256-9m9+fldOgv2QTuUbw5y0zekBxZe8Dd4+8FqR3t3uFGg=";
};

patches = [ ./version.patch ];

postPatch = ''
substituteInPlace CMakeLists.txt --subst-var-by DUCKDB_VERSION "v${version}"
substituteInPlace tools/shell/CMakeLists.txt \
--replace \
'install(TARGETS shell RUNTIME DESTINATION "''${PROJECT_BINARY_DIR}")' \
'install(TARGETS shell RUNTIME DESTINATION "''${INSTALL_BIN_DIR}")'
'';

nativeBuildInputs = [ cmake ninja ];
buildInputs = [ openssl ]
++ lib.optionals withJdbc [ openjdk11 ]
++ lib.optionals withOdbc [ unixODBC ];

cmakeFlags = [
"-DBUILD_EXCEL_EXTENSION=ON"
"-DBUILD_FTS_EXTENSION=ON"
"-DBUILD_HTTPFS_EXTENSION=${enableFeature withHttpFs}"
"-DBUILD_ICU_EXTENSION=ON"
"-DBUILD_JSON_EXTENSION=ON"
"-DBUILD_ODBC_DRIVER=${enableFeature withOdbc}"
"-DBUILD_PARQUET_EXTENSION=ON"
"-DBUILD_TPCDS_EXTENSION=ON"
"-DBUILD_TPCE=ON"
"-DBUILD_TPCH_EXTENSION=ON"
"-DBUILD_TPCDS_EXTENSION=ON"
"-DBUILD_FTS_EXTENSION=ON"
"-DBUILD_HTTPFS_EXTENSION=ON"
"-DBUILD_VISUALIZER_EXTENSION=ON"
"-DBUILD_JSON_EXTENSION=ON"
"-DBUILD_JEMALLOC_EXTENSION=ON"
"-DBUILD_EXCEL_EXTENSION=ON"
"-DBUILD_INET_EXTENSION=ON"
"-DBUILD_TPCE=ON"
"-DBUILD_ODBC_DRIVER=${enableFeature withOdbc}"
"-DJDBC_DRIVER=${enableFeature withJdbc}"
# development settings
"-DBUILD_UNITTESTS=ON"
];

doInstallCheck = true;
Expand All @@ -69,6 +80,10 @@ stdenv.mkDerivation rec {
"test/sql/storage/compression/chimp/chimp_read_float.test"
"test/sql/storage/compression/patas/patas_compression_ratio.test_coverage"
"test/sql/storage/compression/patas/patas_read.test"
"test/sql/json/read_json_objects.test"
"test/sql/json/read_json.test"
"test/sql/copy/parquet/parquet_5968.test"
"test/fuzzer/pedro/buffer_manager_out_of_memory.test"
# these are only hidden if no filters are passed in
"[!hide]"
# this test apparently never terminates
Expand All @@ -87,11 +102,6 @@ stdenv.mkDerivation rec {
runHook postInstallCheck
'';

nativeBuildInputs = [ cmake ninja ];
buildInputs = lib.optionals withHttpFs [ openssl ]
++ lib.optionals withJdbc [ openjdk11 ]
++ lib.optionals withOdbc [ unixODBC ];

meta = with lib; {
homepage = "https://github.com/duckdb/duckdb";
description = "Embeddable SQL OLAP Database Management System";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/ibis-framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ buildPythonPackage rec {
"--dist=loadgroup"
"-m"
"'${lib.concatStringsSep " or " testBackends} or core'"
# these will be fixed in ibis-framework 5.0.0
"--deselect=ibis/backends/tests/test_string.py::test_string"
"--deselect=ibis/backends/tests/test_register.py::test_csv_reregister_schema"
"--deselect=ibis/backends/tests/test_client.py::test_list_databases"
];

# remove when sqlalchemy backend no longer uses deprecated methods
Expand Down

0 comments on commit 48d298f

Please sign in to comment.