pythonPackages.duckdb: init at 0.1.7
This commit is contained in:
parent
bea173fb51
commit
d190eca583
46
pkgs/development/python-modules/duckdb/default.nix
Normal file
46
pkgs/development/python-modules/duckdb/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue