depot/third_party/nixpkgs/pkgs/development/python-modules/duckdb/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

46 lines
705 B
Nix

{ lib
, buildPythonPackage
, duckdb
, mypy
, numpy
, pandas
, pybind11
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "duckdb";
inherit (duckdb) version src;
format = "setuptools";
sourceRoot = "source/tools/pythonpkg";
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
pybind11
setuptools-scm
];
propagatedBuildInputs = [
numpy
pandas
];
checkInputs = [
mypy
pytestCheckHook
];
pythonImportsCheck = [
"duckdb"
];
meta = with lib; {
description = "Python binding for DuckDB";
homepage = "https://duckdb.org/";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}