From patchwork Thu Aug 27 14:41:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 23795 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 7913127BBE7; Thu, 27 Aug 2020 15:42:09 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 ESMTP id 3560927BBE5 for ; Thu, 27 Aug 2020 15:42:09 +0100 (BST) Received: from localhost ([::1]:39124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBJ6O-0003ba-Lm for patchwork@mira.cbaines.net; Thu, 27 Aug 2020 10:42:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBJ6I-0003bA-Uf for guix-patches@gnu.org; Thu, 27 Aug 2020 10:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBJ6I-0006HD-K3 for guix-patches@gnu.org; Thu, 27 Aug 2020 10:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBJ6I-0006kd-EW for guix-patches@gnu.org; Thu, 27 Aug 2020 10:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43072] [PATCH 1/2] gnu: Add python-dparse. References: <20200827143929.19597-1-tanguy@bioneland.org> In-Reply-To: <20200827143929.19597-1-tanguy@bioneland.org> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Aug 2020 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43072@debbugs.gnu.org Cc: Tanguy Le Carrour Received: via spool by 43072-submit@debbugs.gnu.org id=B43072.159853929325894 (code B ref 43072); Thu, 27 Aug 2020 14:42:02 +0000 Received: (at 43072) by debbugs.gnu.org; 27 Aug 2020 14:41:33 +0000 Received: from localhost ([127.0.0.1]:43600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBJ5p-0006ja-FL for submit@debbugs.gnu.org; Thu, 27 Aug 2020 10:41:33 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:58377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBJ5n-0006jK-Ay for 43072@debbugs.gnu.org; Thu, 27 Aug 2020 10:41:31 -0400 Received: from localhost.localdomain (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 3DCF1240007; Thu, 27 Aug 2020 14:41:23 +0000 (UTC) From: Tanguy Le Carrour Date: Thu, 27 Aug 2020 16:41:14 +0200 Message-Id: <20200827144115.19792-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.28.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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-dparse): New variable. --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e32d7771cf..49156ce6ee 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21750,3 +21750,27 @@ It adds a simple and readable way to print stuff during development.") "@code{python-dateparser} provides modules to easily parse localized dates in almost any string formats commonly found on web pages.") (license license:bsd-3))) + +(define-public python-dparse + (package + (name "python-dparse") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dparse" version)) + (sha256 + (base32 + "0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-packaging" ,python-packaging) + ("python-pyyaml" ,python-pyyaml) + ("python-toml" ,python-toml))) + (home-page "https://github.com/pyupio/dparse") + (synopsis "Parser for Python dependency files") + (description + "A parser for Python dependency files.") + (license license:expat))) From patchwork Thu Aug 27 14:41:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 23796 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 BD22C27BBE5; Thu, 27 Aug 2020 15:42:09 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 ESMTP id 594CB27BBE6 for ; Thu, 27 Aug 2020 15:42:09 +0100 (BST) Received: from localhost ([::1]:39138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBJ6O-0003c4-SQ for patchwork@mira.cbaines.net; Thu, 27 Aug 2020 10:42:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBJ6J-0003bH-6X for guix-patches@gnu.org; Thu, 27 Aug 2020 10:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBJ6I-0006HK-U5 for guix-patches@gnu.org; Thu, 27 Aug 2020 10:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBJ6I-0006kl-RO for guix-patches@gnu.org; Thu, 27 Aug 2020 10:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43072] [PATCH 2/2] gnu: Add python-safety. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Aug 2020 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43072 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43072@debbugs.gnu.org Cc: Tanguy Le Carrour Received: via spool by 43072-submit@debbugs.gnu.org id=B43072.159853929825912 (code B ref 43072); Thu, 27 Aug 2020 14:42:02 +0000 Received: (at 43072) by debbugs.gnu.org; 27 Aug 2020 14:41:38 +0000 Received: from localhost ([127.0.0.1]:43603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBJ5t-0006js-Of for submit@debbugs.gnu.org; Thu, 27 Aug 2020 10:41:37 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:53355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBJ5r-0006jQ-0o for 43072@debbugs.gnu.org; Thu, 27 Aug 2020 10:41:35 -0400 Received: from localhost.localdomain (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 4DEFF240008; Thu, 27 Aug 2020 14:41:29 +0000 (UTC) From: Tanguy Le Carrour Date: Thu, 27 Aug 2020 16:41:15 +0200 Message-Id: <20200827144115.19792-2-tanguy@bioneland.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200827144115.19792-1-tanguy@bioneland.org> References: <20200827144115.19792-1-tanguy@bioneland.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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-safety): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 49156ce6ee..088c709983 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21774,3 +21774,35 @@ dates in almost any string formats commonly found on web pages.") (description "A parser for Python dependency files.") (license license:expat))) + +(define-public python-safety + (package + (name "python-safety") + (version "1.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "safety" version)) + (sha256 + (base32 + "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-tests + (lambda _ + (substitute* "tests/test_safety.py" + ;; requires network + (("def test_check_live") "def _test_check_live")) + #t))))) + (propagated-inputs + `(("python-click" ,python-click) + ("python-dparse" ,python-dparse) + ("python-packaging" ,python-packaging) + ("python-requests" ,python-requests))) + (home-page "https://github.com/pyupio/safety") + (synopsis "Check installed dependencies for known vulnerabilities") + (description "Safety checks installed dependencies for known vulnerabilities. +By default it uses the open Python vulnerability database Safety DB.") + (license license:expat)))