Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 731 B view raw
1{ lib 2, buildPythonPackage 3, duckdb 4, numpy 5, pandas 6, pybind11 7, setuptools_scm 8, pytestrunner 9, pytest 10}: 11 12buildPythonPackage rec { 13 pname = "duckdb"; 14 inherit (duckdb) version src; 15 16 postConfigure = '' 17 cd tools/pythonpkg 18 export SETUPTOOLS_SCM_PRETEND_VERSION=${version} 19 ''; 20 21 nativeBuildInputs = [ 22 pybind11 23 setuptools_scm 24 pytestrunner 25 ]; 26 27 checkInputs = [ 28 pytest 29 ]; 30 31 propagatedBuildInputs = [ 32 numpy 33 pandas 34 ]; 35 36 checkPhase = '' 37 pytest 38 ''; 39 40 meta = with lib; { 41 description = "DuckDB is an embeddable SQL OLAP Database Management System"; 42 homepage = "https://pypi.python.org/pypi/duckdb"; 43 license = licenses.mit; 44 maintainers = [ maintainers.costrouc ]; 45 }; 46}