1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
54 lines
900 B
Nix
54 lines
900 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchpatch
|
|
, duckdb
|
|
, google-cloud-storage
|
|
, mypy
|
|
, numpy
|
|
, pandas
|
|
, psutil
|
|
, pybind11
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "duckdb";
|
|
inherit (duckdb) version src patches;
|
|
format = "setuptools";
|
|
|
|
preConfigure = ''
|
|
cd tools/pythonpkg
|
|
substituteInPlace setup.py --replace "multiprocessing.cpu_count()" "$NIX_BUILD_CORES"
|
|
'';
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
pybind11
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
pandas
|
|
];
|
|
|
|
checkInputs = [
|
|
google-cloud-storage
|
|
mypy
|
|
psutil
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"duckdb"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python binding for DuckDB";
|
|
homepage = "https://duckdb.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc cpcloud ];
|
|
};
|
|
}
|