From patchwork Tue Oct 12 05:44:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 33782 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0B3E127BBE3; Tue, 12 Oct 2021 06:46:38 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AE76727BBE1 for ; Tue, 12 Oct 2021 06:46:37 +0100 (BST) Received: from localhost ([::1]:47324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maAcW-0005ZF-OC for patchwork@mira.cbaines.net; Tue, 12 Oct 2021 01:46:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maAby-0005XC-LP for guix-patches@gnu.org; Tue, 12 Oct 2021 01:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maAby-0002Nq-C8 for guix-patches@gnu.org; Tue, 12 Oct 2021 01:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maAby-00011G-8W for guix-patches@gnu.org; Tue, 12 Oct 2021 01:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51148] [PATCH] gnu: Add python-tinydb. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Oct 2021 05:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51148@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16340175143843 (code B ref -1); Tue, 12 Oct 2021 05:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Oct 2021 05:45:14 +0000 Received: from localhost ([127.0.0.1]:33212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maAbC-0000zv-Ix for submit@debbugs.gnu.org; Tue, 12 Oct 2021 01:45:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:50386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maAbA-0000zn-Np for submit@debbugs.gnu.org; Tue, 12 Oct 2021 01:45:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maAb7-0005Cw-NE for guix-patches@gnu.org; Tue, 12 Oct 2021 01:45:12 -0400 Received: from mx1.dismail.de ([78.46.223.134]:16439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maAb5-0001hp-Ao for guix-patches@gnu.org; Tue, 12 Oct 2021 01:45:09 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id efb81967 for ; Tue, 12 Oct 2021 07:45:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=tInPE8r3ulD5dPnz4ttw3MV0ntdcIvwWR0zZKtRl94w=; b= HUbzMmACtgOu7RSgU9M+jE76ugmPHTfCEvmSM7xi4iiQRU8o3hk32FOtVlXUjaTw 6SH7ySRzkb39eO4fMdOew0SMo9dQQAxYAMrVdg9GizuQaRXMYfOxJkyvhzufN1+s 3XCzCbO/CiyTfvuPB1YjPyVV7nxDPkcqddqtkOsn70mMZ1N2yZw6hjeVDmOUCADf 4hZlZ3p1i+eoocL599YG+TwtnTpJ69OUBmcX5c3ekPbPOULnJJUr0NqNOi5VrJEO 1LJKsUfjCmHAQJ5fFk9D9GGpASETHopn/3o5bg/DHCTTXX+YtLgdjSNcJPS8WpKq 6iQNhgVdj33e7TTVRzg0Xg== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id af5ce2f0 for ; Tue, 12 Oct 2021 07:45:01 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 836c13d9 for ; Tue, 12 Oct 2021 07:45:01 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id d05907b4 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 12 Oct 2021 07:45:00 +0200 (CEST) Date: Tue, 12 Oct 2021 01:44:49 -0400 Message-Id: <20211012054449.16935-1-jgart@dismail.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches * gnu/packages/databases.scm (python-tinydb): New variable. --- gnu/packages/databases.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index b1dd44da1c..60970b9c8e 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -579,6 +579,46 @@ the API, and provides features such as: @end itemize") (license license:bsd-3))) +(define-public python-tinydb + (package + (name "python-tinydb") + (version "4.5.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "tinydb" version)) + (sha256 + (base32 + "1x9c4s42930wwal3ds0plwb57kg5c3gj7kbpy64c29vq478b463x")))) + (build-system python-build-system) + (arguments + ;; PyPi tarball does not contain tests and github repository does not + ;; have a setup.py file (only pyproject). + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pycodestyle" ,python-pycodestyle) + ("python-pyyaml" ,python-pyyaml))) + (propagated-inputs + `(("python-typing-extensions" ,python-typing-extensions))) + (home-page "https://github.com/msiemens/tinydb") + (synopsis + "TinyDB is a lightweight document oriented database") + (description +"TinyDB is a lightweight document oriented database optimized for +your happiness. It's written in pure Python and has no external +dependencies. The targets are small apps that would be blown away by a +SQL-DB or an external database server.") + (license license:expat))) + (define-public python-pylibmc (package (name "python-pylibmc")