emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48289: closed ([PATCH] gnu: Add python-pythonanywhere.)


From: GNU bug Tracking System
Subject: bug#48289: closed ([PATCH] gnu: Add python-pythonanywhere.)
Date: Mon, 03 Jan 2022 16:36:01 +0000

Your message dated Mon, 03 Jan 2022 17:34:49 +0100
with message-id <877dbghj6e.fsf_-_@gnu.org>
and subject line Re: bug#48289: [PATCH] gnu: Add python-pythonanywhere.
has caused the debbugs.gnu.org bug report #48289,
regarding [PATCH] gnu: Add python-pythonanywhere.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
48289: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48289
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-pythonanywhere. Date: Sat, 8 May 2021 15:28:49 +0200
* 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#48289: [PATCH] gnu: Add python-pythonanywhere. Date: Mon, 03 Jan 2022 17:34:49 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi Filip,

Filip Lajszczak <filip@lajszczak.dev> skribis:

> * gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.

Finally applied with the tweaks below (see
<https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html>).

Thank you, and thanks for persevering!

Ludo’.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5baddf1abb..01992dc729 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12532,11 +12532,11 @@ (define-public python-pythonanywhere
              (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")))))))
+             (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
       (list python-pytest
             python-psutil
@@ -12552,9 +12552,9 @@ (define-public python-pythonanywhere
             python-typer))
     (home-page "https://github.com/pythonanywhere/helper_scripts/";)
     (synopsis "PythonAnywhere helper tools for users")
-    (description "PythonAnywhere helper tools for users.  Cli and python 
wrapper
-around API that allows managing web apps and scheduled tasks.  Includes 
single-command
-deployment for Django Girls tutorial.")
+    (description "PythonAnywhere provides a command-line interface and an
+application programming interface that allows managing Web apps and scheduled
+tasks.  It includes single-command deployment for the Django Girls tutorial.")
     (license license:expat)))
 
 (define-public python-pythondialog

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]