python3Packages.duckdb: fix build
This commit is contained in:
parent
d53978239b
commit
f9b5594776
1 changed files with 8 additions and 13 deletions
|
@ -4,31 +4,23 @@
|
||||||
, numpy
|
, numpy
|
||||||
, pandas
|
, pandas
|
||||||
, pybind11
|
, pybind11
|
||||||
|
, mypy
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, pytest-runner
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "duckdb";
|
pname = "duckdb";
|
||||||
inherit (duckdb) version src;
|
inherit (duckdb) version src;
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
# build attempts to use git to figure out its own version. don't want to add
|
sourceRoot = "source/tools/pythonpkg";
|
||||||
# the dependency for something pointless.
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace scripts/package_build.py --replace \
|
|
||||||
"'git'" "'false'"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postConfigure = ''
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
cd tools/pythonpkg
|
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${version}
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pybind11
|
pybind11
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
pytest-runner
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -37,10 +29,13 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
mypy
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "duckdb" ];
|
pythonImportsCheck = [
|
||||||
|
"duckdb"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python binding for DuckDB";
|
description = "Python binding for DuckDB";
|
||||||
|
|
Loading…
Reference in a new issue