[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/14: gnu: Add python-duckdb.
From: |
guix-commits |
Subject: |
02/14: gnu: Add python-duckdb. |
Date: |
Thu, 8 Jun 2023 04:38:16 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit d7e0306aa5e7c8ac2f8794ab5839424911d62d52
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jun 7 20:16:00 2023 +0200
gnu: Add python-duckdb.
* gnu/packages/python-xyz.scm (python-duckdb): New variable.
---
gnu/packages/python-xyz.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f2a794367f..1aad8b90ca 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20515,6 +20515,59 @@ from the header, as well as section details and data
available.")
Mustache templating language renderer.")
(license license:expat)))
+(define-public python-duckdb
+ (package
+ (name "python-duckdb")
+ (version "0.8.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "duckdb" version))
+ (sha256
+ (base32
+ "13y1gs565q51li5fi9m7fpf0sqns8frsaii6v95acwjhmdds73f6"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ '(list "--ignore=tests/slow/test_h2oai_arrow.py"
+ ;; Don't install anything, thank you.
+ "-k" "not test_install_non_existent_extension")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Tests need this
+ (add-before 'check 'set-HOME
+ (lambda _ (setenv "HOME" "/tmp")))
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
+ (substitute* "setup.py"
+ (("\"setuptools_scm<7.0.0\",") ""))))
+ ;; Later versions of pybind replace "_" with "const_name".
+ (add-after 'unpack 'pybind-compatibility
+ (lambda _
+ (with-directory-excursion "src/include/duckdb_python"
+ (substitute* '("python_objects.hpp"
+ "pyfilesystem.hpp"
+ "pybind11/conversions/pyconnection_default.hpp")
+ (("const_name") "_"))))))))
+ (native-inputs
+ (list pybind11
+ python-fsspec
+ python-google-cloud-storage
+ python-mypy
+ python-numpy
+ python-pandas
+ python-psutil
+ python-pyarrow
+ python-pytest
+ python-pytest-runner
+ python-setuptools-scm))
+ (home-page "https://www.duckdb.org")
+ (synopsis "DuckDB embedded database")
+ (description "DuckDB is an in-process SQL OLAP database management
+system.")
+ (license license:expat)))
+
(define-public python-dulwich
(package
(name "python-dulwich")
- branch master updated (e8f9fb3e03 -> 266e54d7cb), guix-commits, 2023/06/08
- 02/14: gnu: Add python-duckdb.,
guix-commits <=
- 01/14: gnu: python-pyarrow: Include dataset support., guix-commits, 2023/06/08
- 08/14: gnu: yoshimi: Update to 2.3.0., guix-commits, 2023/06/08
- 04/14: gnu: Add python-srsly., guix-commits, 2023/06/08
- 13/14: gnu: Add python-pathy., guix-commits, 2023/06/08
- 11/14: gnu: Add python-blis-for-thinc., guix-commits, 2023/06/08
- 14/14: gnu: Add python-spacy., guix-commits, 2023/06/08
- 03/14: gnu: Add python-pubmed-parser., guix-commits, 2023/06/08
- 07/14: gnu: Add python-blis., guix-commits, 2023/06/08
- 10/14: gnu: Add python-spacy-loggers., guix-commits, 2023/06/08
- 05/14: gnu: Add python-confection., guix-commits, 2023/06/08