ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / duckdb / default.nix
blobc61dfc9f4da45ff21d63021aab3e226e35bda5b8
1 { lib
2 , buildPythonPackage
3 , fetchpatch
4 , duckdb
5 , google-cloud-storage
6 , mypy
7 , numpy
8 , pandas
9 , psutil
10 , pybind11
11 , setuptools-scm
12 , pytestCheckHook
15 buildPythonPackage rec {
16   pname = "duckdb";
17   inherit (duckdb) version src patches;
18   format = "setuptools";
20   preConfigure = ''
21     cd tools/pythonpkg
22     substituteInPlace setup.py --replace "multiprocessing.cpu_count()" "$NIX_BUILD_CORES"
23   '';
25   SETUPTOOLS_SCM_PRETEND_VERSION = version;
27   nativeBuildInputs = [
28     pybind11
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     numpy
34     pandas
35   ];
37   checkInputs = [
38     google-cloud-storage
39     mypy
40     psutil
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [
45     "duckdb"
46   ];
48   meta = with lib; {
49     description = "Python binding for DuckDB";
50     homepage = "https://duckdb.org/";
51     license = licenses.mit;
52     maintainers = with maintainers; [ costrouc cpcloud ];
53   };