From patchwork Mon Oct 10 21:30:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 43314 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 F11B827BBEA; Mon, 10 Oct 2022 22:32:32 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A5FF027BBE9 for ; Mon, 10 Oct 2022 22:32:32 +0100 (BST) Received: from localhost ([::1]:41470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi0Nz-0004mI-SB for patchwork@mira.cbaines.net; Mon, 10 Oct 2022 17:32:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi0NW-0004LZ-Lc for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oi0NW-0003nF-E6 for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oi0NW-0007Fc-9P for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 1/4] gnu: Add python-coverage-5.5 References: <877aca93-bd87-3314-dbf9-ae9b0c537eb9@autistici.org> In-Reply-To: <877aca93-bd87-3314-dbf9-ae9b0c537eb9@autistici.org> Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Oct 2022 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53019@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.166543746527783 (code B ref 53019); Mon, 10 Oct 2022 21:32:02 +0000 Received: (at 53019) by debbugs.gnu.org; 10 Oct 2022 21:31:05 +0000 Received: from localhost ([127.0.0.1]:50161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0Ma-0007Dz-SX for submit@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:05 -0400 Received: from confino.investici.org ([93.190.126.19]:59919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0MX-0007DH-LI for 53019@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:02 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4MmXCS4Zn9z10ww; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1665437460; bh=BJVqFsPE9U9EnnONSuSGHMWhvM5LCoiB5DRkg0R9edU=; h=From:To:Cc:Subject:Date:From; b=IkTkVaaDHZyjAnnJuZoeVboZ+IIlSyJ0uHvwV4sUM84Zc59HRJsyzpDVN17Xs7Cgu 5GuhWR3M/svx7koPN3qheJfQJmDFJj+kzi23fjsDh89Ii7x0kpJsM8DHCMrhQ8rMxR kZ960q/Chvys7duAjE+oUwIZnCzYgqidaP32zduU= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4MmXCS3RC8z10wf; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) Date: Mon, 10 Oct 2022 23:30:44 +0200 Message-Id: <20221010213047.14134-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi X-getmail-retrieved-from-mailbox: Patches This has been also sent to staging in https://issues.guix.gnu.org/58421. * gnu/packages/check.scm (python-coverage-5.5): New variable. --- gnu/packages/check.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) base-commit: dbb35cd2e8a9e1d9d2f6a4425d68b0631466ff29 diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 797fe71277..2758262862 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -38,6 +38,7 @@ ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2021 Hugo Lecomte ;;; Copyright © 2022 Maxime Devos +;;; Copyright © 2022 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -1763,6 +1764,19 @@ (define-public python-coverage executed.") (license license:bsd-3))) +;; TODO: This can be removed after staging is merged. +(define-public python-coverage-5.5 + (package + (inherit python-coverage) + (version "5.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "coverage" version)) + (sha256 + (base32 + "0b112ly7vvplvm9l411aqknxhr7fzfyp28xhflhkcx78l3lqzrzb")))))) + (define-public python-pytest-asyncio (package (name "python-pytest-asyncio") From patchwork Mon Oct 10 21:30:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 43313 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 64BA327BBEA; Mon, 10 Oct 2022 22:32:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 07CE827BBE9 for ; Mon, 10 Oct 2022 22:32:15 +0100 (BST) Received: from localhost ([::1]:36136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi0Ni-0004R5-6K for patchwork@mira.cbaines.net; Mon, 10 Oct 2022 17:32:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi0NX-0004Lp-DX for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oi0NX-0003nR-6F for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oi0NX-0007Fr-2I for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 2/4] gnu: python-codecov: Update to 2.1.12. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Oct 2022 21:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53019@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.166543746627797 (code B ref 53019); Mon, 10 Oct 2022 21:32:03 +0000 Received: (at 53019) by debbugs.gnu.org; 10 Oct 2022 21:31:06 +0000 Received: from localhost ([127.0.0.1]:50165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0Mb-0007EC-Mq for submit@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:06 -0400 Received: from confino.investici.org ([93.190.126.19]:36253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0MX-0007DF-LG for 53019@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:03 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4MmXCS5VWkz10x8; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1665437460; bh=WQJbCKCUSt2sB8bCY+3/+zr2LxLaxj8NcX/+cCxC3uA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G1I5BLNu7phOL7IT4Bcagaa27B4MQQKNS+MNXxod2l0EF20/Rf4s5xwoxGuxnEFPM 9vc6BuA6pjl4ikEg/EN0Kj41CjNwWz2VN6CXQ1wumii8iPiYYbz8AwQJ2YP/eD5jIb RU9iM+zFJZZWlik/gVL3QBaiz+Jnk6oznAh6gvUo= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4MmXCS4sZbz10wf; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) Date: Mon, 10 Oct 2022 23:30:45 +0200 Message-Id: <20221010213047.14134-2-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221010213047.14134-1-goodoldpaul@autistici.org> References: <20221010213047.14134-1-goodoldpaul@autistici.org> MIME-Version: 1.0 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: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi X-getmail-retrieved-from-mailbox: Patches * gnu/packages/check.scm (python-codecov): Update to 2.1.12. --- gnu/packages/check.scm | 46 +++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 2758262862..10e11e1e36 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -77,6 +77,7 @@ (define-module (gnu packages check) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-science) #:use-module (gnu packages time) + #:use-module (gnu packages version-control) #:use-module (gnu packages xml) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) @@ -1840,19 +1841,46 @@ (define-public python-cov-core (define-public python-codecov (package (name "python-codecov") - (version "2.0.15") + (version "2.1.12") (source - (origin - (method url-fetch) - (uri (pypi-uri "codecov" version)) - (sha256 - (base32 - "1217c0vqf7ii65635gvl27a5pfhv0r7zhrpdp9cx640hg73bgn4f")))) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/codecov/codecov-python") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0bdk1cp3hxydpx9knqfv88ywwzw7yqhywi0inxjd6x53qh75prqy")))) (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (setenv "CI" "True") + (setenv "APPVEYOR" "True") + (invoke (string-append #$python-pytest "/bin/py.test") + "tests/test.py" "-vv" + "--cov=codecov" "-k" + (string-append + ;; These tests require network access. + "not test_bowerrc and " + "not test_none_found and " + "not test_run_coverage_fails and " + "not test_disable_search")))))))) (native-inputs - (list python-unittest2)) + (list git-minimal + mercurial + python-coverage-5.5 + python-ddt + python-mock + python-pytest + python-pytest-cov + python-requests)) (propagated-inputs - (list python-coverage python-requests)) + (list python-coverage-5.5 python-requests)) (home-page "https://github.com/codecov/codecov-python") (synopsis "Upload code coverage reports to @code{codecov.io}") (description From patchwork Mon Oct 10 21:30:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 43311 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 2294327BBEA; Mon, 10 Oct 2022 22:32:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E374227BBE9 for ; Mon, 10 Oct 2022 22:32:11 +0100 (BST) Received: from localhost ([::1]:36128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi0Nf-0004Lw-1p for patchwork@mira.cbaines.net; Mon, 10 Oct 2022 17:32:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi0NX-0004Lg-28 for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oi0NW-0003nL-Qj for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oi0NW-0007Fk-MH for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 3/4] gnu: Add python-ddlparse. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Oct 2022 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53019@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.166543746527791 (code B ref 53019); Mon, 10 Oct 2022 21:32:02 +0000 Received: (at 53019) by debbugs.gnu.org; 10 Oct 2022 21:31:05 +0000 Received: from localhost ([127.0.0.1]:50163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0Mb-0007E4-CD for submit@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:05 -0400 Received: from confino.investici.org ([93.190.126.19]:63183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0MX-0007DE-LF for 53019@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:03 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4MmXCS6RZwz110y; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1665437460; bh=jigzx4HGOfd1ncd2fqMyDAEywEq4SZ3fLKerhPJaNMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HcC9EU5jKbwInOzlZ0FpiLc534JQTupGEiNdX8nYDGR41yD0QFbdq0ytkFoMDl61k jUAhjtuZpIJsTh1Fr1LmzzUME4DqyXuv3lk4vKu+6D3UHPhH5LY2HuQi7KVjB8jBFY 21xkBEjIQEwT7SBZmAVFkwkntbmfU2OuIy34CICc= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4MmXCS5nnTz10wf; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) Date: Mon, 10 Oct 2022 23:30:46 +0200 Message-Id: <20221010213047.14134-3-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221010213047.14134-1-goodoldpaul@autistici.org> References: <20221010213047.14134-1-goodoldpaul@autistici.org> MIME-Version: 1.0 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: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-ddlparse): New variable. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 60870f5447..63413a1e71 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3597,6 +3597,36 @@ (define-public python-jsondiff compare, diff, and patch JSON and JSON-like structures in Python.") (license license:expat))) +(define-public python-ddlparse + (package + (name "python-ddlparse") + (version "1.10.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ddlparse" version)) + (sha256 + (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (native-inputs + (list python-codecov + python-coveralls + python-pytest + python-pytest-cov-3.0 + python-tox)) + (propagated-inputs (list python-pyparsing)) + (home-page "https://github.com/shinichi-takii/ddlparse") + (synopsis "Parses and converts DDL to BigQuery JSON schema") + (description "This package provides @{ddlparse}, a Python library to parse +and convert DDL to BigQuery JSON schema.") + (license license:bsd-3))) + (define-public python-jsonschema (package (name "python-jsonschema") From patchwork Mon Oct 10 21:30:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 43312 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 73AE827BBED; Mon, 10 Oct 2022 22:32:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1D01E27BBE9 for ; Mon, 10 Oct 2022 22:32:13 +0100 (BST) Received: from localhost ([::1]:36130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi0Ng-0004Mc-7a for patchwork@mira.cbaines.net; Mon, 10 Oct 2022 17:32:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi0NW-0004LR-7y for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oi0NW-0003n9-0P for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oi0NV-0007FV-Rw for guix-patches@gnu.org; Mon, 10 Oct 2022 17:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 4/4] gnu: Add python-aerich. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Oct 2022 21:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53019@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 53019-submit@debbugs.gnu.org id=B53019.166543746427776 (code B ref 53019); Mon, 10 Oct 2022 21:32:01 +0000 Received: (at 53019) by debbugs.gnu.org; 10 Oct 2022 21:31:04 +0000 Received: from localhost ([127.0.0.1]:50159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0Ma-0007Du-Eg for submit@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:04 -0400 Received: from confino.investici.org ([93.190.126.19]:63647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi0MX-0007DG-LD for 53019@debbugs.gnu.org; Mon, 10 Oct 2022 17:31:02 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4MmXCT0P6Rz111F; Mon, 10 Oct 2022 21:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1665437461; bh=u1CI0uNbSNxAgjbq0P3DdYNsy/R22BsMe/9AjX7GEvc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GWSDl1FF9GpoW2L5g5DnN67ir+3Dg9myD+nyBY4oDhx5O3wp4WvMAdUB9AcU2dTiJ bE2ZRYuX72pHxSc+7WeYqbs6K5mBrxf2GowyE+H+Uw0mbbmPJXi6oJgy801oSQdRre vcuukv5y0M0ec/WnBoKPSNhbaxI1sut2GVklE8xg= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4MmXCS6lX6z10wf; Mon, 10 Oct 2022 21:31:00 +0000 (UTC) Date: Mon, 10 Oct 2022 23:30:47 +0200 Message-Id: <20221010213047.14134-4-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221010213047.14134-1-goodoldpaul@autistici.org> References: <20221010213047.14134-1-goodoldpaul@autistici.org> MIME-Version: 1.0 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: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi X-getmail-retrieved-from-mailbox: Patches * gnu/packages/databases.scm (python-aerich): New variable. --- gnu/packages/databases.scm | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index cf07832df7..9bc103f389 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -58,6 +58,7 @@ ;;; Copyright © 2022 Zhu Zihao ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2022 muradm +;;; Copyright © 2022 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -3035,6 +3036,66 @@ (define-public python-tortoise-orm with relational data.") (license license:asl2.0))) +(define-public aerich + (package + (name "aerich") + (version "0.6.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tortoise/aerich") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ndkl8vvn6bxh19s26k3p5mlk1sk4ziw73c07av08va6cfp5ln0j")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'generate-setup.py + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; This is an hack needed to get poetry's setup.py. + (setenv "POETRY_VIRTUALENVS_CREATE" "false") + (invoke "poetry" "build" "-f" "sdist") + (invoke "bash" "-c" + (string-append "tar --wildcards " + "-xvf dist/*-`poetry version -s`.tar.gz " + "-O '*/setup.py' > setup.py")))) + (replace 'check + (lambda* (#:key tests? outputs #:allow-other-keys) + (when tests? + (let ((out (assoc-ref outputs "out"))) + (invoke "pytest" "-vv")))))))) + (native-inputs + (list + poetry + python-bandit + python-cryptography + python-isort + python-pydantic + python-pytest + python-pytest-asyncio + python-pytest-mock + python-pytest-xdist)) + (propagated-inputs + (list python-asyncmy + python-asyncpg + python-click + python-ddlparse + python-dictdiffer + python-tomlkit + python-tortoise-orm)) + (home-page "https://github.com/tortoise/aerich") + (synopsis "Database migrations tool for Tortoise ORM (Object Relational +Mapper)") + (description + "This package provides @code{aerich}, a Python database migrations tool +for Tortoise ORM (Object Relational Mapper). It can be used both +programmatically or as a standalone CLI application.") + (license license:asl2.0))) + (define-public sqlcipher (package (name "sqlcipher")