unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Filip Lajszczak <filip@lajszczak.dev>
To: 48289@debbugs.gnu.org
Cc: Filip Lajszczak <filip@lajszczak.dev>
Subject: [bug#48289] [PATCH] gnu: Add python-pythonanywhere.
Date: Sat,  8 May 2021 15:28:49 +0200	[thread overview]
Message-ID: <20210508132849.26030-1-filip@lajszczak.dev> (raw)

* 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 <sharlatanus@gmail.com>
 ;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
 ;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
+;;; Copyright © 2021 Filip Lajszczak <filip@lajszczak.dev>
 ;;;
 ;;; 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")
-- 
2.31.1





             reply	other threads:[~2021-05-08 16:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-08 13:28 Filip Lajszczak [this message]
2021-05-08 21:16 ` [bug#48289] [PATCH] gnu: Add python-pythonanywhere Maxime Devos
2021-05-09 13:06   ` Filip Lajszczak
2021-05-09 13:09 ` Filip Lajszczak
2021-12-17 23:08 ` Filip Lajszczak
2022-01-03 16:34   ` bug#48289: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210508132849.26030-1-filip@lajszczak.dev \
    --to=filip@lajszczak.dev \
    --cc=48289@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).