mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
47 lines
731 B
Nix
47 lines
731 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, duckdb
|
|
, numpy
|
|
, pandas
|
|
, pybind11
|
|
, setuptools_scm
|
|
, pytestrunner
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "duckdb";
|
|
inherit (duckdb) version src;
|
|
|
|
postConfigure = ''
|
|
cd tools/pythonpkg
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=${version}
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pybind11
|
|
setuptools_scm
|
|
pytestrunner
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
pandas
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "DuckDB is an embeddable SQL OLAP Database Management System";
|
|
homepage = "https://pypi.python.org/pypi/duckdb";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|