aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorjgart2021-12-03 01:39:26 -0500
committerjgart2021-12-03 01:39:26 -0500
commita167712ba9a0c2e096dc953cf3d677fb859bd755 (patch)
tree6089ed576234c454c709a195ddb0f89b7a9b2400 /gn
parentf1462f84f43d1c0f6ec7ea66e8e4448beaaee003 (diff)
downloadguix-bioinformatics-a167712ba9a0c2e096dc953cf3d677fb859bd755.tar.gz
add pudb
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/python.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index bed3fe6..bc9c904 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -1820,3 +1820,41 @@ The goal of the project is to parse everything in the Pip requirement
file format spec.")
(license license:bsd-3)))
+(define-public pudb
+ (package
+ (name "pudb")
+ (version "2021.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pudb" version))
+ (sha256
+ (base32 "0p16pvzfa3w02ybg3n0iy5rs23z4rz4a42lb8wh3mcq62y9ik2w7"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'fix-read-only-home
+ (lambda _
+ (setenv "HOME" "/tmp")))
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest")))))))
+ (native-inputs
+ `(("python-numpy" ,python-numpy)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-mock" ,python-pytest-mock)))
+ (propagated-inputs
+ `(("python-jedi" ,python-jedi)
+ ("python-pygments" ,python-pygments)
+ ("python-urwid" ,python-urwid)
+ ("python-urwid-readline" ,python-urwid-readline)))
+ (home-page "https://documen.tician.de/pudb/")
+ (synopsis "Console-based Python debugger")
+ (description
+"@command{pudb} is a full-screen, console-based Python debugger
+providing all the niceties of modern GUI-based debuggers in a more
+lightweight and keyboard-friendly package.")
+ (license license:expat)))