duckdb: add patch to fix list type inference (#178886)

This commit is contained in:
Phillip Cloud 2022-07-01 08:14:19 -05:00 committed by GitHub
parent 4c35729086
commit a034fd5235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -33,6 +33,11 @@ stdenv.mkDerivation rec {
url = "https://github.com/duckdb/duckdb/commit/82e13a4bb9f0683af6c52468af2fb903cce4286d.patch";
sha256 = "sha256-m0Bs0DOJQtkadbKZKk88NHyBFJkjxXUsiWYciuRIJLU=";
})
(fetchpatch {
name = "fix-list-type-metadata.patch";
url = "https://github.com/duckdb/duckdb/commit/26d123fdc57273903573c72b1ddafc52f365e378.patch";
sha256 = "sha256-ttqs5EjeSLhZQOXc43Y5/N5IYSESQTD1FZWV1uJ15Fo=";
})
];
postPatch = ''

View file

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, duckdb
, google-cloud-storage
, mypy
@ -13,10 +14,12 @@
buildPythonPackage rec {
pname = "duckdb";
inherit (duckdb) version src;
inherit (duckdb) version src patches;
format = "setuptools";
sourceRoot = "source/tools/pythonpkg";
preConfigure = ''
cd tools/pythonpkg
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -45,6 +48,6 @@ buildPythonPackage rec {
description = "Python binding for DuckDB";
homepage = "https://duckdb.org/";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
maintainers = with maintainers; [ costrouc cpcloud ];
};
}