pythonPackages.duckdb: init at 0.1.7

This commit is contained in:
Chris Ostrouchov 2020-05-26 21:27:48 -04:00 committed by Jon
parent bea173fb51
commit d190eca583
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ 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 ];
};
}

View file

@ -3619,6 +3619,10 @@ in {
SPARQLWrapper = callPackage ../development/python-modules/sparqlwrapper { };
duckdb = callPackage ../development/python-modules/duckdb {
duckdb = pkgs.duckdb;
};
dulwich = callPackage ../development/python-modules/dulwich {
inherit (pkgs) git glibcLocales;
};