From patchwork Sun May 9 13:09:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Filip Lajszczak X-Patchwork-Id: 29184 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 5748E27BC82; Sun, 9 May 2021 14:11:08 +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,SPF_HELO_PASS,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 ESMTPS id 1955027BC81 for ; Sun, 9 May 2021 14:11:08 +0100 (BST) Received: from localhost ([::1]:59496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfjD9-0002vd-Bm for patchwork@mira.cbaines.net; Sun, 09 May 2021 09:11:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfjD4-0002vR-ID for guix-patches@gnu.org; Sun, 09 May 2021 09:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfjD4-0004t0-B5 for guix-patches@gnu.org; Sun, 09 May 2021 09:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfjD4-0005fe-6b for guix-patches@gnu.org; Sun, 09 May 2021 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48289] [PATCH] gnu: Add python-pythonanywhere. References: <20210508132849.26030-1-filip@lajszczak.dev> In-Reply-To: <20210508132849.26030-1-filip@lajszczak.dev> Resent-From: Filip Lajszczak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 May 2021 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48289@debbugs.gnu.org Cc: Filip Lajszczak Received: via spool by 48289-submit@debbugs.gnu.org id=B48289.162056580621782 (code B ref 48289); Sun, 09 May 2021 13:11:02 +0000 Received: (at 48289) by debbugs.gnu.org; 9 May 2021 13:10:06 +0000 Received: from localhost ([127.0.0.1]:55418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfjC9-0005fF-Js for submit@debbugs.gnu.org; Sun, 09 May 2021 09:10:05 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:52537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfjC6-0005eo-D0 for 48289@debbugs.gnu.org; Sun, 09 May 2021 09:10:03 -0400 X-Originating-IP: 93.177.90.216 Received: from localhost.localdomain (unknown [93.177.90.216]) (Authenticated sender: filip@lajszczak.dev) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id C98F424000A; Sun, 9 May 2021 13:09:55 +0000 (UTC) From: Filip Lajszczak Date: Sun, 9 May 2021 15:09:29 +0200 Message-Id: <20210509130929.26805-1-filip@lajszczak.dev> X-Mailer: git-send-email 2.31.1 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-pythonanywhere): New variable. --- gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index de7c303b6c..c9468dff19 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -99,6 +99,7 @@ ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Ellis Kenyő ;;; Copyright © 2021 LibreMiami +;;; Copyright © 2021 Filip Lajszczak ;;; ;;; This file is part of GNU Guix. ;;; @@ -11455,6 +11456,55 @@ programmatically with command-line parsers like @code{getopt} and (define-public python2-docopt (package-with-python2 python-docopt)) +(define-public python-pythonanywhere + (package + (name "python-pythonanywhere") + (version "0.9.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pythonanywhere/helper_scripts") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0yd0hk9awfk4kc99nn008by8jbz2h709qvzzixjyjhcg6xjmc2zh")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'check 'change-home + (lambda _ + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; exclude tests marked as slowtest that assume running inside git repository on + ;; system with virtualenvwrapper installed. + (invoke "pytest" "-m" "not slowtest"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-psutil" ,python-psutil) + ("python-responses" ,python-responses) + ("python-pytest-mock" ,python-pytest-mock))) + (propagated-inputs + `(("python-dateutil" ,python-dateutil) + ("python-docopt" ,python-docopt) + ("python-packaging" ,python-packaging) + ("python-requests" ,python-requests) + ("python-schema" ,python-schema) + ("python-tabulate" ,python-tabulate) + ("python-typer" ,python-typer))) + (home-page + "https://github.com/pythonanywhere/helper_scripts/") + (synopsis + "PythonAnywhere helper tools for users") + (description + "PythonAnywhere helper tools for users. Scripts, cli and python wrapper around API +that allows to manage web apps and scheduled tasks. Includes single-command deployment +for Django Girls tutorial.") + (license license:expat))) + (define-public python-pythondialog (package (name "python-pythondialog")