From ce37a0c106217449df95a3130381f833e77c79c6 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun
Date: Mon, 30 Mar 2020 08:37:04 +0200 Subject: [PATCH 3/5] gnu: Add python-pypika Not to be confused with python-pika, which is a different package. * gnu/packages/databases.scm (python-pypika): New variable. --- gnu/packages/databases.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 25c4fbc5bb..669b8f9bc6 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3047,6 +3047,27 @@ transforms idiomatic python function calls to well-formed SQL queries.") (define-public python2-sql (package-with-python2 python-sql)) +(define-public python-pypika + (package + (name "python-pypika") + (version "0.36.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyPika" version)) + (sha256 + (base32 + "0qzn5vygirg52dlizm6ayzdc5llq8p2krrx0kymr236lrz89wqp8")))) + (build-system python-build-system) + (native-inputs + `(("python-parameterized" ,python-parameterized))) + (home-page "https://github.com/kayak/pypika") + (synopsis "SQL query builder API for Python") + (description + "PyPika is a python SQL query builder that exposes the full richness of +the SQL language using a syntax that reflects the resulting query.") + (license license:asl2.0))) + (define-public mongo-tools (package (name "mongo-tools") -- 2.20.1