1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/development/python-modules/duckdb/default.nix

54 lines
961 B
Nix
Raw Normal View History

2020-05-27 02:27:48 +01:00
{ lib
, buildPythonPackage
, duckdb
, numpy
, pandas
, pybind11
, setuptools_scm
, pytestrunner
, pytest
}:
buildPythonPackage rec {
pname = "duckdb";
inherit (duckdb) version src;
# build attempts to use git to figure out its own version. don't want to add
# the dependency for something pointless.
postPatch = ''
substituteInPlace scripts/package_build.py --replace \
"'git'" "'false'"
'';
2020-05-27 02:27:48 +01:00
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 ];
};
}