From patchwork Tue Jul 4 22:22:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 51556 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 87BCB27BBEA; Tue, 4 Jul 2023 23:33:39 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham 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 D9B2327BBE2 for ; Tue, 4 Jul 2023 23:33:36 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGoa4-0000kd-2g; Tue, 04 Jul 2023 18:33:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGoZy-0000kB-7v for guix-patches@gnu.org; Tue, 04 Jul 2023 18:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGoZx-0005AM-V8 for guix-patches@gnu.org; Tue, 04 Jul 2023 18:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGoZx-0004oj-Qe for guix-patches@gnu.org; Tue, 04 Jul 2023 18:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64467] [PATCH] gnu: Add python-gixy. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Jul 2023 22:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64467 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64467@debbugs.gnu.org Cc: Bruno Victal X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168850994418468 (code B ref -1); Tue, 04 Jul 2023 22:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2023 22:32:24 +0000 Received: from localhost ([127.0.0.1]:36756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGoZL-0004no-Ss for submit@debbugs.gnu.org; Tue, 04 Jul 2023 18:32:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:55050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGoZJ-0004nY-Iu for submit@debbugs.gnu.org; Tue, 04 Jul 2023 18:32:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGoZC-0000Yw-WF for guix-patches@gnu.org; Tue, 04 Jul 2023 18:32:15 -0400 Received: from smtpm1.myservices.hosting ([185.26.105.232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGoZA-00053a-Ke for guix-patches@gnu.org; Tue, 04 Jul 2023 18:32:14 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm1.myservices.hosting (Postfix) with ESMTP id B10A3209A8 for ; Wed, 5 Jul 2023 00:32:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id CC9EF80097; Wed, 5 Jul 2023 00:22:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VotsKil9h6ZI; Wed, 5 Jul 2023 00:22:14 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 3315080060; Wed, 5 Jul 2023 00:22:14 +0200 (CEST) From: Bruno Victal Date: Tue, 4 Jul 2023 23:22:01 +0100 Message-Id: <3c2dcb852f94b32b76be47e5e2e6a7194430ad63.1688509284.git.mirai@makinata.eu> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: pass client-ip=185.26.105.232; envelope-from=mirai@makinata.eu; helo=smtpm1.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/check.scm (python-gixy): New variable. --- gnu/packages/check.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) base-commit: 9122736455a9085d51b71b269b7c26a695a474ef diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index df57a778fe..4e8caadc82 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2022 jgart ;;; Copyright © 2023 Luis Felipe López Acevedo ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2023 Bruno Victal ;;; ;;; This file is part of GNU Guix. ;;; @@ -811,6 +812,41 @@ (define-public doctest has been designed to be fast, light and unintrusive.") (license license:expat))) +(define-public python-gixy + ;; The 0.1.20 release is missing some important fixes. + ;; XXX: Commit 'e9008dcbd11f43ccac109b0cf2bf98a94e76b449' breaks tests + ;; since it improperly removes an import. + (let ((commit "303eb6887ddecab18138b6e427b04ae77c41d2f1") + (revision "0") + (base-version "0.1.20")) + (package + (name "python-gixy") + (version (git-version base-version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yandex/gixy") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0gymjcnvjx9snyrzdbmjnk93ibb161q72xam29vnl3yyac4r1330")))) + (build-system pyproject-build-system) + (native-inputs (list python-nose)) + (propagated-inputs + (list python-cached-property python-configargparse + python-jinja2 python-six + ;; XXX: gixy is incompatible with pyparsing >= 3.x. + ;; See and + ;; . + python-pyparsing-2.4.7)) + (home-page "https://github.com/yandex/gixy") + (synopsis "Static NGINX configuration analyzer") + (description "Gixy is a static analyzer whose main goal is to help +prevent common NGINX misconfigurations. It provides the @command{gixy} +command.") + (license license:mpl2.0)))) + (define-public go-github.com-smartystreets-gunit (package (name "go-github.com-smartystreets-gunit")