From patchwork Sat May 8 13:28:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Filip Lajszczak X-Patchwork-Id: 29167 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 AC02427BC82; Sat, 8 May 2021 17:21:27 +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 4149827BC81 for ; Sat, 8 May 2021 17:21:27 +0100 (BST) Received: from localhost ([::1]:44536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfPhm-00053i-CL for patchwork@mira.cbaines.net; Sat, 08 May 2021 12:21:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfPEM-0000eQ-Cq for guix-patches@gnu.org; Sat, 08 May 2021 11:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfPEM-0007MI-5H for guix-patches@gnu.org; Sat, 08 May 2021 11:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfPEM-0002eD-4D for guix-patches@gnu.org; Sat, 08 May 2021 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48289] [PATCH] gnu: Add python-pythonanywhere. Resent-From: Filip Lajszczak Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 May 2021 15:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48289@debbugs.gnu.org Cc: Filip Lajszczak X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162048904810153 (code B ref -1); Sat, 08 May 2021 15:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 May 2021 15:50:48 +0000 Received: from localhost ([127.0.0.1]:50927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfPE7-0002dh-Qv for submit@debbugs.gnu.org; Sat, 08 May 2021 11:50:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:33236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfN1Z-0001IZ-KF for submit@debbugs.gnu.org; Sat, 08 May 2021 09:29:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfN1Y-0002uk-El for guix-patches@gnu.org; Sat, 08 May 2021 09:29:41 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfN1V-00066C-SK for guix-patches@gnu.org; Sat, 08 May 2021 09:29:39 -0400 X-Originating-IP: 93.177.90.216 Received: from localhost.localdomain (unknown [93.177.90.216]) (Authenticated sender: filip@lajszczak.dev) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 292EEE0006; Sat, 8 May 2021 13:29:31 +0000 (UTC) From: Filip Lajszczak Date: Sat, 8 May 2021 15:28:49 +0200 Message-Id: <20210508132849.26030-1-filip@lajszczak.dev> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.196; envelope-from=filip@lajszczak.dev; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 08 May 2021 11:50:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 08 May 2021 12:20:46 -0400 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 | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index de7c303b6c..083d26c212 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,52 @@ 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") #t)) + (replace 'check + (lambda _ + (invoke "pytest" "-m" "not slowtest") #t))))) + (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")