My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/duckdb/default.nix

53 lines
810 B

{ 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
'';
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 ];
};
}