2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, duckdb
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pybind11
|
2022-01-03 16:56:52 +00:00
|
|
|
, mypy
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-02-17 17:02:09 +00:00
|
|
|
, pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "duckdb";
|
|
|
|
inherit (duckdb) version src;
|
2022-01-03 16:56:52 +00:00
|
|
|
format = "setuptools";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
sourceRoot = "source/tools/pythonpkg";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pybind11
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-01-03 16:56:52 +00:00
|
|
|
mypy
|
2021-07-04 02:40:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"duckdb"
|
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-07-04 02:40:35 +00:00
|
|
|
description = "Python binding for DuckDB";
|
|
|
|
homepage = "https://duckdb.org/";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.mit;
|
2021-07-04 02:40:35 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|