summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Lajszczak <filip@lajszczak.dev>2021-05-09 15:09:29 +0200
committerGuix Patches Tester <>2021-05-09 14:12:33 +0100
commitb6677e55f4c89006511cc9b08d04584ac5a82da4 (patch)
tree0930d35707f7adc5228cf3e5573aebec096b26c9
parent2ba311f6c9acf5a2f27e2000424052d407350318 (diff)
downloadguix-patches-b6677e55f4c89006511cc9b08d04584ac5a82da4.tar
guix-patches-b6677e55f4c89006511cc9b08d04584ac5a82da4.tar.gz
gnu: Add python-pythonanywhere.series-7888
* gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.
-rw-r--r--gnu/packages/python-xyz.scm50
1 files changed, 50 insertions, 0 deletions
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 <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,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")