mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #153088 from fabaff/fix-duckdb
python3Packages.duckdb: fix build
This commit is contained in:
commit
2ac78e7a22
@ -4,31 +4,23 @@
|
||||
, numpy
|
||||
, pandas
|
||||
, pybind11
|
||||
, mypy
|
||||
, setuptools-scm
|
||||
, pytest-runner
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "duckdb";
|
||||
inherit (duckdb) version src;
|
||||
format = "setuptools";
|
||||
|
||||
# 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'"
|
||||
'';
|
||||
sourceRoot = "source/tools/pythonpkg";
|
||||
|
||||
postConfigure = ''
|
||||
cd tools/pythonpkg
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${version}
|
||||
'';
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pybind11
|
||||
setuptools-scm
|
||||
pytest-runner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -37,10 +29,13 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mypy
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "duckdb" ];
|
||||
pythonImportsCheck = [
|
||||
"duckdb"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python binding for DuckDB";
|
||||
|
Loading…
Reference in New Issue
Block a user