From patchwork Fri Oct 4 11:08:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 15649 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 81E1C174F8; Fri, 4 Oct 2019 12:44:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 3634C174F4 for ; Fri, 4 Oct 2019 12:44:45 +0100 (BST) Received: from localhost ([::1]:46996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGM0q-0000tU-AW for patchwork@mira.cbaines.net; Fri, 04 Oct 2019 07:44:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47926) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGLTM-0005tW-6X for guix-patches@gnu.org; Fri, 04 Oct 2019 07:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGLTH-0001rH-3S for guix-patches@gnu.org; Fri, 04 Oct 2019 07:10:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGLTH-0001rB-0C for guix-patches@gnu.org; Fri, 04 Oct 2019 07:10:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iGLTG-0006zc-OF for guix-patches@gnu.org; Fri, 04 Oct 2019 07:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37617] [PATCH 1/6] gnu: Add python-pytest-isort. References: <20191004110641.15728-1-h.goebel@crazy-compilers.com> In-Reply-To: <20191004110641.15728-1-h.goebel@crazy-compilers.com> Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Oct 2019 11:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37617 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37617@debbugs.gnu.org Received: via spool by 37617-submit@debbugs.gnu.org id=B37617.157018738926855 (code B ref 37617); Fri, 04 Oct 2019 11:10:02 +0000 Received: (at 37617) by debbugs.gnu.org; 4 Oct 2019 11:09:49 +0000 Received: from localhost ([127.0.0.1]:41817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGLT2-0006z5-LP for submit@debbugs.gnu.org; Fri, 04 Oct 2019 07:09:48 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:37253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGLRk-0006vm-7Y for 37617@debbugs.gnu.org; Fri, 04 Oct 2019 07:09:48 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46l6Yl4Cfsz1rhZC for <37617@debbugs.gnu.org>; Fri, 4 Oct 2019 13:08:26 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46l6Yk4Ntpz1qqkb for <37617@debbugs.gnu.org>; Fri, 4 Oct 2019 13:08:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id JqYhtR7OjGqI for <37617@debbugs.gnu.org>; Fri, 4 Oct 2019 13:08:25 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-61-233.dynamic.mnet-online.de [188.174.61.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <37617@debbugs.gnu.org>; Fri, 4 Oct 2019 13:08:25 +0200 (CEST) Received: from lenashee.fritz.box (salamanderburg.fritz.box [192.168.110.31]) by hermia.goebel-consult.de (Postfix) with ESMTP id 813AE6008D for <37617@debbugs.gnu.org>; Fri, 4 Oct 2019 13:08:26 +0200 (CEST) From: Hartmut Goebel Date: Fri, 4 Oct 2019 13:08:19 +0200 Message-Id: <20191004110824.16081-1-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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-check.scm (python-pytest-isort): New variable. --- gnu/packages/python-check.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index b8aaef9b77..362f548c02 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2019 Efraim Flashner ;;; Copyright © 2019 Maxim Cournoyer +;;; Copyright © 2019 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. ;;; @@ -153,6 +154,36 @@ of the project to ensure it renders properly.") compliance.") (license license:bsd-3))) +(define-public python-pytest-isort + (package + (name "python-pytest-isort") + (version "0.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-isort" version)) + (sha256 + (base32 "06myn5hhxs5yp8dqr1yjsgcnnxnsrvsqannm00bvaw0qml6ydzjb")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append (getcwd) ":" + (getenv "PYTHONPATH"))) + (invoke "pytest")))))) + (propagated-inputs + `(("python-isort" ,python-isort) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/moccu/pytest-isort/") + (synopsis "Pytest plugin to check import ordering using isort") + (description + "This package provides a pytest plugin to check import ordering using +isort.") + (license license:bsd-3))) + (define-public python-pytest-shutil (package (name "python-pytest-shutil")