From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8J9pJP2pjGHFHgEAgWs5BA (envelope-from ) for ; Thu, 11 Nov 2021 06:28:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YEHuH/2pjGGILAAAbx9fmQ (envelope-from ) for ; Thu, 11 Nov 2021 05:28:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E9DC4C02E for ; Thu, 11 Nov 2021 06:28:28 +0100 (CET) Received: from localhost ([::1]:52286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml2dQ-0006fr-5E for larch@yhetil.org; Thu, 11 Nov 2021 00:28:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml2d0-0006ez-Tv for guix-patches@gnu.org; Thu, 11 Nov 2021 00:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml2d0-0008KI-HH for guix-patches@gnu.org; Thu, 11 Nov 2021 00:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ml2d0-0001yO-Ds for guix-patches@gnu.org; Thu, 11 Nov 2021 00:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51148] [PATCH] gnu: Add python-tinydb. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Nov 2021 05:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: jgart , 51148@debbugs.gnu.org Received: via spool by 51148-submit@debbugs.gnu.org id=B51148.16366084277518 (code B ref 51148); Thu, 11 Nov 2021 05:28:02 +0000 Received: (at 51148) by debbugs.gnu.org; 11 Nov 2021 05:27:07 +0000 Received: from localhost ([127.0.0.1]:39870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ml2c6-0001xA-DP for submit@debbugs.gnu.org; Thu, 11 Nov 2021 00:27:06 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ml2c1-0001wZ-6B for 51148@debbugs.gnu.org; Thu, 11 Nov 2021 00:27:04 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1854E240103 for <51148@debbugs.gnu.org>; Thu, 11 Nov 2021 06:26:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636608415; bh=ZRy7fwY9QcItvdYYD8Ow2SSGG7/sWHzeUWUJ3HOz06k=; h=Subject:From:To:Date:From; b=mXKxpHP2+I/zl+7gsZ7E5n5Si0DuW+Xr+ldHa4WWHXL9+sBh4od2kSvh5utWOdEUL O/pKtW0xD6L/ug7d1IE8CK16UbNOU7BCJpqcZurtB3Q8gIq3c1jpI8ezUSKppO4fXA 1g+QnV0hPPMxsdr9MOVN5aISNjWhStyD62jtwVWm27GZQQx5DwblfdVZ/aCFx4da1R eZ4qvcyuE6hZU7eRwSYdiyXJPr6TciWfsMv2Go1mQxV2eo1GrkImlqS2nXSW/PWZJt 49ydrg86aSLsSepXxTc2nl0W3ozO87ERZfO7GfzkUdJs2Q+WqCnevwiRMtB+t04xDg I4coWNctZgl1A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HqVZj2Dgwz9rxF; Thu, 11 Nov 2021 06:26:53 +0100 (CET) Message-ID: From: Vinicius Monego Date: Thu, 11 Nov 2021 05:26:45 +0000 In-Reply-To: <20211012054449.16935-1-jgart@dismail.de> References: <20211012054449.16935-1-jgart@dismail.de> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636608509; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Jibrn4x0+lSwnswBc0O+RjRjDJSmzZN8afKrYbfeVyU=; b=LN3rUlvUeNkIdIqWgj8XEtutpEj6P+Ia1/bUi8lrw8PFgIjN203R6TrdxzM79wWgZetSuH eAqK9W0hdkV8YOOiTlGLwk/ZuBDNKrnzc/P5wVj//wx4jhsCgYrBaHzp0jWfEKJcZnM7UG El3osi7Av2XGM8DUYgtcf+Yhxpx6CIu/rnTMZcFy2VHPC3OddtSw5anlpmMHPBVUCPERfT VO1GmaLpsXSju/bdoJG2Ec03uhxYLrkbPyeuf2QZvXeAXdmWyaGpBHE2JN787ZW6y7j6eW EGfd7HbvJlJdXE+3EdmMgcW0834PzC5imtLJkkoE+Df/YlavdkRwCkitWL9gmw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636608509; a=rsa-sha256; cv=none; b=IzPsfrtriIZ6g1m/3tFYpa2RWVoM4ZTw4TinN6kEGBrVYSS87cKGn9wV1KZxgjOGWGzxSg Q0Sd7HtUcQPhlakb8EPqw2GVmWMIQqwz8Wa7gKIjUIrxFZiFQACZC9cpMbqRr2oJwArL9f TznnzXt1Ki5gLKkqrdvpXu1tMJeX+QLB/iYgtEjNN9wRspZiDX5pbnQjj/+a6F8L8A0sRw +Sr2dW7y3FvFrVBZpaXcSgRHcEuMwqJSitZF2NFgXkOL3hQLe+xU2Eb4l80PydfzLxADoN o5g+76ihaAPNf9Kow7EXwPwfO2CZNMa0Muqy98C1Zxh8sd47cZCnS7ajz2Qy/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=mXKxpHP2; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=mXKxpHP2; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E9DC4C02E X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: r7Ezj8DQdP9/ Hi jgart, Em ter, 2021-10-12 às 01:44 -0400, jgart escreveu: > * gnu/packages/databases.scm (python-tinydb): New variable. > --- >  gnu/packages/databases.scm | 40 Don't miss your copyright in this file. > ++++++++++++++++++++++++++++++++++++++ >  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) The indentation is off below. > +    (arguments > +       ;; PyPi tarball does not contain tests and github repository > does not > +       ;; have a setup.py file (only pyproject). I recently noticed this pattern of shipping only Poetry in the repository while at the same time not shipping tests in PyPI. I don't know why this is happening or what we can do about it in guix, the best for now is to source from PyPI and skip tests like in this package. > +      `(#: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"))) The two lines above are redundant. The second line is the manual way of doing what the first one does. But if we don't have a way to run the tests, I'd not override the check phase. > +                (invoke "pytest"))))))) > +    (native-inputs > +      `(("python-pytest" ,python-pytest) > +        ("python-pytest-cov" ,python-pytest-cov) > +        ("python-pycodestyle" ,python-pycodestyle) > +        ("python-pyyaml" ,python-pyyaml))) Test-related native inputs are also useless if tests can't run. > +    (propagated-inputs > +      `(("python-typing-extensions" ,python-typing-extensions))) > +    (home-page "https://github.com/msiemens/tinydb") > +    (synopsis > +      "TinyDB is a lightweight document oriented database") Same line for the synopsis. > +    (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.") I'd suggest "TinyDB is a small document oriented database written in pure Python with no external dependencies. [...]". > +    (license license:expat))) > + >  (define-public python-pylibmc >    (package >      (name "python-pylibmc")