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 sNkQH3OpjGF6IQEAgWs5BA (envelope-from ) for ; Thu, 11 Nov 2021 06:26:11 +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 uMCoGnOpjGG2KQAAbx9fmQ (envelope-from ) for ; Thu, 11 Nov 2021 05:26:11 +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 9916FC01D for ; Thu, 11 Nov 2021 06:26:10 +0100 (CET) Received: from localhost ([::1]:51988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml2bB-0006Q0-Ak for larch@yhetil.org; Thu, 11 Nov 2021 00:26:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml2b4-0006Pd-CI for guix-patches@gnu.org; Thu, 11 Nov 2021 00:26:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml2b4-00087q-3I for guix-patches@gnu.org; Thu, 11 Nov 2021 00:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ml2b3-0001v9-UH for guix-patches@gnu.org; Thu, 11 Nov 2021 00:26:01 -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:26:01 +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@dismail.de, 51148@debbugs.gnu.org X-Debbugs-Original-To: jgart , guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16366083167315 (code B ref -1); Thu, 11 Nov 2021 05:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Nov 2021 05:25:16 +0000 Received: from localhost ([127.0.0.1]:39866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ml2aJ-0001tv-Ty for submit@debbugs.gnu.org; Thu, 11 Nov 2021 00:25:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:53062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ml2aH-0001tl-92 for submit@debbugs.gnu.org; Thu, 11 Nov 2021 00:25:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml2aH-0005w2-1L for guix-patches@gnu.org; Thu, 11 Nov 2021 00:25:13 -0500 Received: from mout01.posteo.de ([185.67.36.65]:45793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml2aE-0007w8-Oq for guix-patches@gnu.org; Thu, 11 Nov 2021 00:25:12 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id DF148240028 for ; Thu, 11 Nov 2021 06:25:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636608306; bh=V4FR3MB3R5wvTwVudMliE8fxDiM2Oa7+6vBHBaeQiLw=; h=Subject:From:To:Date:From; b=UUVxInNTdyYqZUAG14Npu5LxSrFnYa8ms3KGXVwcLxZgf+XERoQB3myTDH+8Ll4RR YLyH/Qv2I+zwmTNzVSIntM9JkZwT2SZaDbK4k6uPoHkXgLVp+anr2uMbYQ6PbXi2LJ 01K1Ckh53NW3+1qI331FOXkYVXUplI1kcalEudq1WL/inRXndE+E0AdtW+4c3F9cJx rLntNlb7liN21kDQ7fbXtlPHPHigdpQciHJ4GjThobO4jJEYAnjWLs+n5tEtAdYOjd 5RiWe8V8V5zdVe+VBZIda5fbRQJoRW0EJ74ekuQYbbp6HiZ4ongbZXKazXHrrb3CZc XKn0ZzqD9I+Fg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HqVXc6DdNz9rxD; Thu, 11 Nov 2021 06:25:04 +0100 (CET) Message-ID: From: Vinicius Monego Date: Thu, 11 Nov 2021 05:24:54 +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 Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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+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=1636608371; 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=F2tuVQ9fy/rIdQUqHwjz+xgxUoXp3hqpfxvFP22ZX9s=; b=MCQbYRxXTS1w2KeAl9QjniioC0SLxxiePnI7XbDJ5Rmzp+EXxITOffrZiVFV53qKUR6wpA ZqjbZ5m0naOb6fTrGfURXc8FS+UENpdYE/u9UIwmFA7V2F9W6/CkRDz/V5Zwp3CZ3szbfp NiBoSnDMvnZJ3DV+RUjI5qlwnPTfIT+MS48Wbd2JJStIw9a4rPpGfSa3JZjOwO0zxZyRoW Vhsr3vzr8ZdEoNtSP94sbdDsGGa5HgZeMtocxEA5ie+geHTSyEIQMuDQI1xIL8ZTYzk27E xcAmtiGFecpcdolnZFqAQd1q/3XxDYFSvjDtbJzjFw2NH8jXMLzgcHEeVqtZiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636608371; a=rsa-sha256; cv=none; b=fO0N8mYDmTn/0/rGajeKEn0t5scxH+Nu8lBGCDYB4fmOSiPUHCzzzuBzoJEZekHYLPxVhi HLHfuAzAoZETzrFzXAgQSZcm1YL4s35TNUar1BenOETU7ZQEfksj3qfi7fJv1LQeDJys1t TL48eTs2t4PDJEb7NTv59aj+/QmENvxfwbFjZA4Uql4sb57DxtXMAQM7KaLd0TlxGFQwKC YmEPTfODF8/tnBuVYA1c04WYnWddD9aZl527SRFEhA8kuozJ7HdbSFH0ffEXPimEg+K9iY LPeYUbdbPwcdhWpUaFtXTB9lJmehbdYzAskI7B9sK460NtVsHUJRxSD2MmqANA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=UUVxInNT; 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=UUVxInNT; 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: 9916FC01D X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: E3ofGm97YHPk 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")