From patchwork Sat Mar 5 23:14:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: paul X-Patchwork-Id: 37622 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 0BC2827BBEA; Sat, 5 Mar 2022 23:16:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 BF17E27BBE9 for ; Sat, 5 Mar 2022 23:16:10 +0000 (GMT) Received: from localhost ([::1]:44346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQddB-0000oK-UX for patchwork@mira.cbaines.net; Sat, 05 Mar 2022 18:16:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQdd4-0000nu-2q for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55515) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQdd3-0003Fh-QU for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQdd3-00018c-N6 for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter. 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: Sat, 05 Mar 2022 23:16: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.16465221191388 (code B ref 53019); Sat, 05 Mar 2022 23:16:01 +0000 Received: (at 53019) by debbugs.gnu.org; 5 Mar 2022 23:15:19 +0000 Received: from localhost ([127.0.0.1]:49408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcH-0000G3-0L for submit@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:18 -0500 Received: from confino.investici.org ([212.103.72.250]:28741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcE-0000DG-V5 for 53019@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:11 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4KB0tk3ssYz10yR; Sat, 5 Mar 2022 23:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1646522110; bh=n7HqlxrNoh/g6M+umTfdw1uv+R51hVKx33OpakPF6+I=; h=From:To:Cc:Subject:Date:From; b=lBpMAKiM/eIEvGD6RJLWiowmiMJ4ZFG74HUbURXFUHuDJoQp22TBRSxOe8YQz7kBh CAvnsvu7SGqv0BOzZK2uZyIfTvybX15YQU0I4ih7PhakwrwYWUH/brOncuihvKXnxy UqeAZdHds/2F5wI5rsyI1l+Yzu8a9gIIjtKCpOH4= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4KB0tk3Kx8z10xh; Sat, 5 Mar 2022 23:15:10 +0000 (UTC) Date: Sun, 6 Mar 2022 00:14:57 +0100 Message-Id: <20220305231459.22969-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.34.0 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: paul X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable. --- gnu/packages/python-check.scm | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) base-commit: 0c6bf910efd090f0aa0479ba727e5e68655e9b68 diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 05a378601f..2789d65a25 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2021 Brendan Tildesley ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Bonface Munyoki Kilyungi +;;; Copyright © 2022 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ (define-module (gnu packages python-check) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -1508,6 +1510,49 @@ (define-public python-pytest-qt interaction, like key presses and mouse clicks.") (license license:expat))) +(define-public python-codeclimate-test-reporter + (package + (name "python-codeclimate-test-reporter") + (version "0.2.3") + (source + (origin + (method git-fetch) ;no tests in pypi archive + (uri (git-reference + (url "https://github.com/codeclimate/python-test-reporter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-fixtures-paths + (lambda _ + (substitute* "tests/test_formatter.py" + (("\\./tests/fixtures") + (string-append (getcwd) "/tests/fixtures"))) + ;; FIXME: These tests fail with + ;; obscure error messages. + (for-each + (lambda (test-file) + (delete-file test-file)) + '("tests/test_reporter.py" + "tests/test_runner.py"))))))) + (native-inputs + (list git + python-httpretty + python-pytest)) + (propagated-inputs + (list python-coverage + python-requests)) + (home-page "https://github.com/codeclimate/python-test-reporter") + (synopsis "Reports test coverage to Code Climate") + (description "This package provides @{codclimate-test-reporter}, a Python +library teport test coverage to Code Climate.") + (license license:expat))) + (define-public python-codacy-coverage (package (name "python-codacy-coverage") From patchwork Sat Mar 5 23:14:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: paul X-Patchwork-Id: 37624 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 91DAE27BBEA; Sat, 5 Mar 2022 23:16:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 53CDE27BBE9 for ; Sat, 5 Mar 2022 23:16:17 +0000 (GMT) Received: from localhost ([::1]:44778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQddI-00016C-FB for patchwork@mira.cbaines.net; Sat, 05 Mar 2022 18:16:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQdd4-0000o2-Fc for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQdd4-0003Fn-7F for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQdd4-000197-32 for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 2/3] gnu: Add python-ddlparse. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 23:16: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.16465221191415 (code B ref 53019); Sat, 05 Mar 2022 23:16:02 +0000 Received: (at 53019) by debbugs.gnu.org; 5 Mar 2022 23:15:19 +0000 Received: from localhost ([127.0.0.1]:49410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcN-0000MH-1M for submit@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:19 -0500 Received: from confino.investici.org ([212.103.72.250]:51295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcG-0000F1-AW for 53019@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:12 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4KB0tl6S38z10y8; Sat, 5 Mar 2022 23:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1646522111; bh=Ed3m0SbdG7vqdt/KHnWnpa19iFRN2HJTh17fQrzEbxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0pJ2U0Sxfilu0+UzWtfFYsO9tW56iz2om6qzunu/k3ThoyQbyo7AFhOaTYCJYhDs O7fyj6znSVkYO7aoIo8izKminTu92Zxvc2AMagne1mAINRGg2CiYRxQpjSTxEaypwZ FHnZi1X/NDW0PxbfpH1NTK8C5iRYOCZpGRgTJttY= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4KB0tl5wRbz10xh; Sat, 5 Mar 2022 23:15:11 +0000 (UTC) Date: Sun, 6 Mar 2022 00:14:58 +0100 Message-Id: <20220305231459.22969-2-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220305231459.22969-1-goodoldpaul@autistici.org> References: <20220305231459.22969-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: paul X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-ddlparse): New variable. --- gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d3d7b7160d..5edfcca020 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3564,6 +3564,44 @@ (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")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "test-requirements.txt" + (("codecov>=2\\.1\\.8") "codecov") + (("pytest-cov>=2\\.10\\.0") "pytest-cov")) + #t)))) + (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-codeclimate-test-reporter + python-codecov + python-coveralls + python-pytest + python-pytest-cov + 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 Sat Mar 5 23:14:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: paul X-Patchwork-Id: 37623 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 0E20027BBEA; Sat, 5 Mar 2022 23:16:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 CC6EA27BBE9 for ; Sat, 5 Mar 2022 23:16:11 +0000 (GMT) Received: from localhost ([::1]:44386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQddC-0000qH-RU for patchwork@mira.cbaines.net; Sat, 05 Mar 2022 18:16:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQdd4-0000oA-Rh for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQdd4-0003Ft-JR for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQdd4-00019h-GC for guix-patches@gnu.org; Sat, 05 Mar 2022 18:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53019] [PATCH 3/3] gnu: Add python-aerich. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 23:16: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.16465221191438 (code B ref 53019); Sat, 05 Mar 2022 23:16:02 +0000 Received: (at 53019) by debbugs.gnu.org; 5 Mar 2022 23:15:19 +0000 Received: from localhost ([127.0.0.1]:49412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcN-0000Mj-Bo for submit@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:19 -0500 Received: from confino.investici.org ([212.103.72.250]:22961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQdcG-0000FA-EH for 53019@debbugs.gnu.org; Sat, 05 Mar 2022 18:15:16 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4KB0tm08sGz10yR; Sat, 5 Mar 2022 23:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1646522112; bh=8sL23t9wtbqm59xBCCW0qrtWW4kB7UgczhqTC+BEW4Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qfhu6XyFhmbO+bQIhFh1j/da9/VNzBmyxZzvnRuqc5fbwDYipBkaOTiCS2GiOKS2u pDx+E8FdoeKD6TkClcSToSXuxw/AGyHCkEovM9c0hlFiAZ34XCO7r962Mlacl4Ayxv NBsvym+ooa72/5V8C8E+5oaseLwKzCWFIOCFxj9M= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4KB0tl6kpkz10xh; Sat, 5 Mar 2022 23:15:11 +0000 (UTC) Date: Sun, 6 Mar 2022 00:14:59 +0100 Message-Id: <20220305231459.22969-3-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220305231459.22969-1-goodoldpaul@autistici.org> References: <20220305231459.22969-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: paul X-getmail-retrieved-from-mailbox: Patches * gnu/packages/databases.scm (python-aerich): New variable. --- gnu/packages/databases.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 8e9431016f..f47f738336 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -56,6 +56,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -3015,6 +3016,36 @@ (define-public python-tortoise-orm with relational data.") (license license:asl2.0))) +(define-public python-aerich + (package + (name "python-aerich") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aerich" version)) + (sha256 + (base32 "19bvx5icsmmf9ylxyqrxw4wjv77shg5r8pjgdg7plzhn937bzlch")))) + (build-system python-build-system) + (arguments + ;; Tests are not packaged in the Pypi tarball and + ;; require a poetry environment to be run from source. + `(#:tests? #f)) + (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") + (description + "This package provides @code{aerich} a Python database migrations tool for +Tortoise ORM.") + (license license:asl2.0))) + (define-public sqlcipher (package (name "sqlcipher")