From dddcb25c7f99ff229c5d5b0f7cbba4dc0ba78971 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 17 Aug 2016 17:45:24 +0100 Subject: gnu: Add python-odfpy. * gnu/packages/python.scm (python-odfpy, python2-odfpy): New variables. Signed-off-by: Alex Kost --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8b52548065..33674fa9d9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2016 ng0 ;;; Copyright © 2016 Dylan Jeffers ;;; Copyright © 2016 David Craven +;;; Copyright © 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -10241,3 +10242,39 @@ time by mocking the datetime module.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-odfpy + (package + (name "python-odfpy") + (version "1.3.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "odfpy" version)) + (sha256 + (base32 + "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw")))) + (arguments + `(#:modules ((srfi srfi-1) + (guix build python-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (replace 'check + ;; The test runner invokes python2 and python3 for test*.py. + ;; To avoid having both in inputs, we replicate it here. + (lambda _ + (every (lambda (test-file) + (zero? (system* "python" test-file))) + (find-files "tests" "^test.*\\.py$"))))))) + (build-system python-build-system) + (home-page "https://github.com/eea/odfpy") + (synopsis "Python API and tools to manipulate OpenDocument files") + (description "Collection of libraries and utility programs written in +Python to manipulate OpenDocument 1.2 files.") + (license + ;; The software is mainly dual GPL2+ and ASL2.0, but includes a + ;; number of files with other licenses. + (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0)))) + +(define-public python2-odfpy + (package-with-python2 python-odfpy)) -- cgit v1.3 From debf4179b4312ad3ea02f994154a2d989bc16089 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 10 Sep 2016 18:34:46 -0400 Subject: gnu: python-pillow: Update to 3.3.1. * gnu/packages/python.scm (python-pillow, python2-pillow): Update to 3.3.1. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 33674fa9d9..0987b8fe47 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3755,14 +3755,14 @@ services for your Python modules and applications.") (define-public python-pillow (package (name "python-pillow") - (version "3.1.1") + (version "3.3.1") (source (origin (method url-fetch) (uri (pypi-uri "Pillow" version)) (sha256 (base32 - "1zwzakr5v0skdh0azp5cd6fwzbll5305dsk33k5jk570vv6lqvs8")))) + "1w9x3dfrg8b5lqhpjl0fczfyf9842wbqwgxbjjq4vfpxv5jwm49l")))) (build-system python-build-system) (native-inputs `(("python-setuptools" ,python-setuptools) -- cgit v1.3 From b30565bd8ab311e41b6169090f8cbbb61d408d36 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 10 Sep 2016 11:19:37 +0100 Subject: gnu: Add python-cachecontrol. * gnu/packages/python.scm (python-cachecontrol, python2-cachecontrol): New variables. --- gnu/packages/python.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0987b8fe47..8c361456b6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10278,3 +10278,52 @@ Python to manipulate OpenDocument 1.2 files.") (define-public python2-odfpy (package-with-python2 python-odfpy)) + +(define-public python-cachecontrol + (package + (name "python-cachecontrol") + (version "0.11.6") + (source + (origin + (method url-fetch) + ;; Pypi does not have tests. + (uri (string-append + "https://github.com/ionrock/cachecontrol/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; Drop test that requires internet access. + (delete-file "tests/test_regressions.py") + (setenv "PYTHONPATH" + (string-append (getcwd) "/build/lib:" + (getenv "PYTHONPATH"))) + (zero? (system* "py.test" "-vv"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-redis" ,python-redis) + ("python-webtest" ,python-webtest) + ("python-mock" ,python-mock))) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-lockfile" ,python-lockfile))) + (home-page "https://github.com/ionrock/cachecontrol") + (synopsis "The httplib2 caching algorithms for use with requests") + (description "CacheControl is a port of the caching algorithms in +@code{httplib2} for use with @code{requests} session objects.") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-cachecontrol))) + +(define-public python2-cachecontrol + (let ((base (package-with-python2 (strip-python2-variant python-cachecontrol)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From dd4476214c585f3ecf8157212d6eca1f637ef831 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 11 Sep 2016 11:30:54 +1000 Subject: gnu: python-cachecontrol: Correct parentheses. This commit is a follow-up to 'b30565b'. * gnu/packages/python.scm (python-cachecontrol): Correct parentheses. --- gnu/packages/python.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8c361456b6..8b9273cd41 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10319,7 +10319,7 @@ Python to manipulate OpenDocument 1.2 files.") (description "CacheControl is a port of the caching algorithms in @code{httplib2} for use with @code{requests} session objects.") (license license:asl2.0) - (properties `((python2-variant . ,(delay python2-cachecontrol))) + (properties `((python2-variant . ,(delay python2-cachecontrol)))))) (define-public python2-cachecontrol (let ((base (package-with-python2 (strip-python2-variant python-cachecontrol)))) -- cgit v1.3 From d2262d7052c9ca65d2dde600e3dbe0b4e72f289c Mon Sep 17 00:00:00 2001 From: Ivan Vilata-i-Balaguer Date: Mon, 12 Sep 2016 19:24:51 +0200 Subject: gnu: python-py3status: Update to 3.1. * gnu/packages/python.scm (python-py3status): Update to 3.1. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8b9273cd41..b839f22989 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9015,14 +9015,14 @@ to occurences in strings and comments.") (define-public python-py3status (package (name "python-py3status") - (version "2.9") + (version "3.1") (source (origin (method url-fetch) (uri (pypi-uri "py3status" version)) (sha256 (base32 - "09y7h8rjay5kzwk5akq7f5f9wqnvjkxhivck04hdc8ny1nw3vqzp")))) + "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) (build-system python-build-system) (native-inputs `(("python-setuptools" ,python-setuptools))) -- cgit v1.3 From d15e2ef05a8fe711d5fda75c198c5299961d4716 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 23 Aug 2016 15:09:06 +0200 Subject: gnu: python-prompt-toolkit: Update to 1.0.7. * gnu/packages/python.scm (python-prompt-toolkit): Update to 1.0.7. [source]: Use 'pypi-uri'. --- gnu/packages/python.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b839f22989..e918149b41 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9750,17 +9750,14 @@ implementation for Python.") (define-public python-prompt-toolkit (package (name "python-prompt-toolkit") - (version "1.0.3") + (version "1.0.7") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/" - "8d/de/412f23919929c01e6b55183e124623f705e4b91796d3d2dce2cb53d595ad/" - "prompt_toolkit-" version ".tar.gz")) + (uri (pypi-uri "prompt_toolkit" version ".tar.gz")) (sha256 (base32 - "18lbmmkyjf509klc3217lq0x863pfzix779zx5kp9lms1iph4pl0")))) + "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg")))) (build-system python-build-system) (inputs `(("python-wcwidth" ,python-wcwidth) ("python-pygments" ,python-pygments))) -- cgit v1.3 From 243db8245e6d8ee6aae80ce4606fb58cb8b23443 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Tue, 13 Sep 2016 12:30:40 +0200 Subject: gnu: Add python-lit, python2-lit. * gnu/packages/python.scm (python-lit, python2-lit): New variables. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e918149b41..e2e1ec2ee8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10324,3 +10324,31 @@ Python to manipulate OpenDocument 1.2 files.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-lit + (package + (name "python-lit") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lit" version)) + (sha256 + (base32 + "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y")))) + (build-system python-build-system) + (home-page "http://llvm.org/") + (synopsis "LLVM Software Testing Tool") + (description "@code{lit} is a portable tool for executing LLVM and Clang +style test suites, summarizing their results, and providing indication of +failures.") + (license license:ncsa) + (properties `((python2-variant . ,(delay python2-lit)))))) + +(define-public python2-lit + (let ((base (package-with-python2 (strip-python2-variant python-lit)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From 66f95b209af77d8d97cfeed75d363ad744500472 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 11 Sep 2016 15:07:35 +0100 Subject: gnu: Add python-pytest-pep8. * gnu/packages/python.scm (python-pytest-pep8, python2-pytest-pep8): New variables. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e2e1ec2ee8..8ca7185ef4 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10352,3 +10352,36 @@ failures.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-pytest-pep8 + (package + (name "python-pytest-pep8") + (version "1.0.6") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-pep8" version)) + (sha256 + (base32 + "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12. + ;; Prevent creation of the egg. This works around + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . + #:configure-flags '("--single-version-externally-managed" "--root=/"))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-pep8" ,python-pep8))) + (home-page "https://bitbucket.org/pytest-dev/pytest-pep8") + (synopsis "Py.test plugin to check PEP8 requirements") + (description "Pytest plugin for checking PEP8 compliance.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-pytest-pep8)))))) + +(define-public python2-pytest-pep8 + (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From df94a6b57d0e507ca9a03257881445a35310c082 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 11 Sep 2016 15:07:36 +0100 Subject: gnu: Add python-pytest-flakes. * gnu/packages/python.scm (python-pytest-flakes, python2-pytest-flakes): New variables. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8ca7185ef4..8c61736a46 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10385,3 +10385,44 @@ failures.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-pytest-flakes + (package + (name "python-pytest-flakes") + (version "1.0.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-flakes" version)) + (sha256 + (base32 + "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw")))) + (build-system python-build-system) + (arguments + `(;; Prevent creation of the egg. This works around + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 . + #:configure-flags '("--single-version-externally-managed" "--root=/") + #:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check + (lambda _ ; It's easier to run tests after install. + (zero? (system* "py.test" "-vv"))))))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest) + ("python-pytest-cache" ,python-pytest-cache) + ("python-pytest-pep8" ,python-pytest-pep8))) + (propagated-inputs + `(("python-pyflakes" ,python-pyflakes))) + (home-page "https://github.com/fschulze/pytest-flakes") + (synopsis "Py.test plugin to check source code with pyflakes") + (description "Pytest plugin for checking Python source code with pyflakes.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-pytest-flakes)))))) + +(define-public python2-pytest-flakes + (let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From 5467ea6200e7cf9fa57f340849b6ec1becc87b3d Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 11 Sep 2016 15:07:37 +0100 Subject: gnu: Add python-natsort. * gnu/packages/python.scm (python-natsort, python2-natsort): New variables. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8c61736a46..0671444ca5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10426,3 +10426,52 @@ failures.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-natsort + (package + (name "python-natsort") + (version "5.0.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "natsort" version)) + (sha256 + (base32 + "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'set-cachedir + ;; Tests require write access to $HOME by default + (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))))) + (native-inputs + `(("python-hypothesis" ,python-hypothesis) + ("python-pytest-cache" ,python-pytest-cache) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-flakes" ,python-pytest-flakes) + ("python-pytest-pep8" ,python-pytest-pep8))) + (propagated-inputs ; TODO: Add python-fastnumbers. + `(("python-pyicu" ,python-pyicu))) + (home-page "https://github.com/SethMMorton/natsort") + (synopsis "Natural sorting for python and shell") + (description + "Natsort lets you apply natural sorting on lists instead of +lexicographical. If you use the built-in @code{sorted} method in python +on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be +returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a +function @code{natsorted} that identifies numbers and sorts them separately +from strings. It can also sort version numbers, real numbers, mixed types +and more, and comes with a shell command @command{natsort} that exposes this +functionality in the command line.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-natsort)))))) + +(define-public python2-natsort + (let ((base (package-with-python2 (strip-python2-variant python-natsort)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ("python2-pathlib" ,python2-pathlib) + ("python2-mock" ,python2-mock) + ("python2-enum34" ,python2-enum34) + ,@(package-native-inputs base)))))) -- cgit v1.3 From 8f65585b1492760407f16bf08ec769080167d28f Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 16 Sep 2016 08:08:48 +0200 Subject: doc: "filesystem" -> "file system" * doc/guix.texi: "filesystem" -> "file system" * gnu/packages/admin.scm: "filesystem" -> "file system" * gnu/packages/cdrom.scm: "filesystem" -> "file system" * gnu/packages/compression.scm: "filesystem" -> "file system" * gnu/packages/disk.scm: "filesystem" -> "file system" * gnu/packages/gnome.scm: "filesystem" -> "file system" * gnu/packages/irc.scm: "filesystem" -> "file system" * gnu/packages/linux.scm: "filesystem" -> "file system" * gnu/packages/mail.scm: "filesystem" -> "file system" * gnu/packages/mpd.scm: "filesystem" -> "file system" * gnu/packages/ocaml.scm: "filesystem" -> "file system" * gnu/packages/perl.scm: "filesystem" -> "file system" * gnu/packages/python.scm: "filesystem" -> "file system" * gnu/packages/search.scm: "filesystem" -> "file system" * gnu/packages/tls.scm: "filesystem" -> "file system" * gnu/services/mail.scm: "filesystem" -> "file system" --- doc/guix.texi | 8 ++++---- gnu/packages/admin.scm | 4 ++-- gnu/packages/cdrom.scm | 4 ++-- gnu/packages/compression.scm | 6 +++--- gnu/packages/disk.scm | 4 ++-- gnu/packages/gnome.scm | 4 ++-- gnu/packages/irc.scm | 4 ++-- gnu/packages/linux.scm | 12 ++++++------ gnu/packages/mail.scm | 2 +- gnu/packages/mpd.scm | 2 +- gnu/packages/ocaml.scm | 2 +- gnu/packages/perl.scm | 8 ++++---- gnu/packages/python.scm | 6 +++--- gnu/packages/search.scm | 2 +- gnu/packages/tls.scm | 2 +- gnu/services/mail.scm | 8 ++++---- 16 files changed, 39 insertions(+), 39 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/doc/guix.texi b/doc/guix.texi index e130317992..7a86a2f0ac 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -9544,7 +9544,7 @@ Defaults to @samp{""}. @end deftypevr @deftypevr {@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access? -Allow full filesystem access to clients. There's no access checks +Allow full file system access to clients. There's no access checks other than what the operating system does for the active UID/GID. It works with both maildir and mboxes, allowing you to prefix mailboxes names with e.g. /path/ or ~user/. @@ -9553,7 +9553,7 @@ Defaults to @samp{#f}. @deftypevr {@code{dovecot-configuration} parameter} boolean mmap-disable? Don't use mmap() at all. This is required if you store indexes to -shared filesystems (NFS or clustered filesystem). +shared file systems (NFS or clustered file system). Defaults to @samp{#f}. @end deftypevr @@ -9815,7 +9815,7 @@ Defaults to @samp{"1d"}. @deftypevr {@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space? When creating new mdbox files, immediately preallocate their size to @samp{mdbox-rotate-size}. This setting currently works only in Linux -with some filesystems (ext4, xfs). +with some file systems (ext4, xfs). Defaults to @samp{#f}. @end deftypevr @@ -9838,7 +9838,7 @@ Defaults to @samp{128000}. @end deftypevr @deftypevr {@code{dovecot-configuration} parameter} string mail-attachment-fs -Filesystem backend to use for saving attachments: +File system backend to use for saving attachments: @table @code @item posix No SiS done by Dovecot (but this might help FS's own deduplication) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 3685633f34..6d6961752f 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -1461,9 +1461,9 @@ limits.") `("PYTHONPATH" ":" prefix (,py))) #t)))))) (home-page "https://github.com/wting/autojump") - (synopsis "Shell extension for filesystem navigation") + (synopsis "Shell extension for file system navigation") (description - "Autojump provides a faster way to navigate your filesystem, with a \"cd + "Autojump provides a faster way to navigate your file system, with a \"cd command that learns\". It works by maintaining a database of the directories you use the most from the command line and allows you to \"jump\" to frequently used directories by typing only a small pattern.") diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm index 4263cdebb7..52c90e18e4 100644 --- a/gnu/packages/cdrom.scm +++ b/gnu/packages/cdrom.scm @@ -146,10 +146,10 @@ libcdio.") ("zlib" ,zlib) ("libcdio" ,libcdio))) (home-page "https://www.gnu.org/software/xorriso/") - (synopsis "Create, manipulate, burn ISO-9660 filesystems") + (synopsis "Create, manipulate, burn ISO-9660 file systems") (description "GNU Xorriso is a tool for copying files to and from ISO 9660 Rock -Ridge, a.k.a. Compact Disc File System, filesystems and it allows +Ridge, a.k.a. Compact Disc File System, file systems and it allows session-wise manipulation of them. It features a formatter and burner for CD, DVD and BD. It can operate on existing ISO images or it can create new ones. xorriso can then be used to copy files directly into or out of ISO diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index aaa0c99e88..6504641977 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -664,14 +664,14 @@ time for compression ratio.") ("xz" ,xz) ("zlib" ,zlib))) (home-page "http://squashfs.sourceforge.net/") - (synopsis "Tools to create and extract squashfs filesystems") + (synopsis "Tools to create and extract squashfs file systems") (description - "Squashfs is a highly compressed read-only filesystem for Linux. It uses + "Squashfs is a highly compressed read-only file system for Linux. It uses zlib to compress files, inodes, and directories. All blocks are packed to minimize the data overhead, and block sizes of between 4K and 1M are supported. It is intended to be used for archival use, for live CDs, and for embedded systems where low overhead is needed. This package allows you to create and -extract such filesystems.") +extract such file systems.") (license license:gpl2+))) (define-public pigz diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 27ab7a698b..a3ace8ab16 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -191,10 +191,10 @@ to recover data more efficiently by only reading the necessary blocks.") "CC=gcc") #:tests? #f)) ;no tests (home-page "https://github.com/dosfstools/dosfstools") - (synopsis "Utilities for making and checking MS-DOS FAT filesystems") + (synopsis "Utilities for making and checking MS-DOS FAT file systems") (description "The dosfstools package includes the mkfs.fat and fsck.fat utilities, -which respectively make and check MS-DOS FAT filesystems.") +which respectively make and check MS-DOS FAT file systems.") (license license:gpl3+))) (define-public sdparm diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 6dab1d79e8..19e982d08a 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3469,9 +3469,9 @@ part of udev-extras, then udev, then systemd. It's now a project on its own.") ("nettle" ,nettle) ; XXX: required by libarchive.pc ("udisks" ,udisks))) (home-page "https://wiki.gnome.org/gvfs/") - (synopsis "Userspace virtual filesystem for GIO") + (synopsis "Userspace virtual file system for GIO") (description - "GVFS is a userspace virtual filesystem designed to work with the I/O + "GVFS is a userspace virtual file system designed to work with the I/O abstraction of GIO. It contains a GIO module that seamlessly adds GVFS support to all applications using the GIO API. It also supports exposing the GVFS mounts to non-GIO applications using FUSE. diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index d52edd8373..1058bef778 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -262,9 +262,9 @@ and extensible with plugins and scripts.") (modify-phases %standard-phases (delete 'configure)))) ; no configure (home-page "http://tools.suckless.org/ii/") - (synopsis "FIFO and filesystem-based IRC client") + (synopsis "FIFO and file system based IRC client") (description - "ii (Irc it) is a minimalist FIFO and filesystem based IRC client.") + "ii (Irc it) is a minimalist FIFO and file system based IRC client.") (license license:expat))) (define-public sic diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index df2eb68426..3e4237720b 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -420,10 +420,10 @@ at login. Local and dynamic reconfiguration are its key features.") (inputs `(("ncurses" ,ncurses))) (home-page "http://psmisc.sourceforge.net/") (synopsis - "Small utilities that use the proc filesystem") + "Small utilities that use the proc file system") (description "This PSmisc package is a set of some small useful utilities that -use the proc filesystem. We're not about changing the world, but +use the proc file system. We're not about changing the world, but providing the system administrator with some help in common tasks.") (license license:gpl2+))) @@ -501,7 +501,7 @@ providing the system administrator with some help in common tasks.") (home-page "https://www.kernel.org/pub/linux/utils/util-linux/") (synopsis "Collection of utilities for the Linux kernel") (description "Util-linux is a diverse collection of Linux kernel -utilities. It provides dmesg and includes tools for working with filesystems, +utilities. It provides dmesg and includes tools for working with file systems, block devices, UUIDs, TTYs, and many other tools.") ;; Note that util-linux doesn't use the same license for all the @@ -643,7 +643,7 @@ slabtop, and skill.") ;; FIXME: Tests work by comparing the stdout/stderr of programs, that ;; they fail because we get an extra line that says "Can't check if - ;; filesystem is mounted due to missing mtab file". + ;; file system is mounted due to missing mtab file". #:tests? #f)) (home-page "http://e2fsprogs.sourceforge.net/") (synopsis "Creating and checking ext2/ext3/ext4 file systems") @@ -2185,7 +2185,7 @@ specified in /etc/acpi/events and execute the rules that match the event.") (home-page "http://linux-diag.sourceforge.net/Sysfsutils.html") (synopsis "System utilities based on Linux sysfs") (description - "These are a set of utilities built upon sysfs, a virtual filesystem in + "These are a set of utilities built upon sysfs, a virtual file system in Linux kernel versions 2.5+ that exposes a system's device tree. The package also contains the libsysfs library.") ;; The library is under lgpl2.1+ (all files say "or any later version"). @@ -2623,7 +2623,7 @@ and copy/paste text in the console and in xterm.") ("which" ,which))) (home-page "https://btrfs.wiki.kernel.org/") (synopsis "Create and manage btrfs copy-on-write file systems") - (description "Btrfs is a copy-on-write (CoW) filesystem for Linux aimed at + (description "Btrfs is a copy-on-write (CoW) file system for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration.") ;; GPL2+: crc32.c, radix-tree.c, raid6.c, rbtree.c. diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 90c2da4f10..e344683af7 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1213,7 +1213,7 @@ deliver it in various ways.") #t))) #:tests? #f)) ;; There are no tests indicating a successful ;; build. Some tests of basic locking mechanisms provided by the - ;; filesystem are performed during 'make install'. However, these + ;; file system are performed during 'make install'. However, these ;; are performed before the actual build process. (build-system gnu-build-system) (inputs `(("exim" ,exim))) diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 7bf39f98b7..ec0861db11 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm @@ -208,7 +208,7 @@ terminal using ncurses.") (description "Ncmpcpp is an mpd client with a UI very similar to ncmpc, but it provides new useful features such as support for regular expressions for library searches, extended song format, items filtering, the ability to -sort playlists, and a local filesystem browser.") +sort playlists, and a local file system browser.") (home-page "http://ncmpcpp.rybczak.net/") (license license:gpl2+))) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 1f4c3e471a..f6f7308ff0 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -673,7 +673,7 @@ to the other.") "The \"findlib\" library provides a scheme to manage reusable software components (packages), and includes tools that support this scheme. Packages are collections of OCaml modules for which metainformation can be stored. The -packages are kept in the filesystem hierarchy, but with strict directory +packages are kept in the file system hierarchy, but with strict directory structure. The library contains functions to look the directory up that stores a package, to query metainformation about a package, and to retrieve dependency information about multiple packages. There is also a tool that diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index d422940447..ba6f71a412 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -404,7 +404,7 @@ in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases. People have also been known to use Cache::Cache for its straightforward interface in sharing data between runs of an application or invocations of a CGI-style script or simply as an -easy to use abstraction of the filesystem or shared memory.") +easy to use abstraction of the file system or shared memory.") (license (package-license perl)))) (define-public perl-cache-fastmmap @@ -2115,7 +2115,7 @@ modules separately and deal with them after the module is done installing.") (synopsis "Advanced operations on path variables") (description "@code{Env::Path} presents an object-oriented interface to path variables, defined as that subclass of environment variables which name -an ordered list of filesystem elements separated by a platform-standard +an ordered list of file system elements separated by a platform-standard separator.") (license (package-license perl)))) @@ -2461,7 +2461,7 @@ platforms.") (synopsis "Create or remove directory trees") (description "This module provide a convenient way to create directories of arbitrary depth and to delete an entire directory subtree from the -filesystem.") +file system.") (license (package-license perl)))) (define-public perl-file-list @@ -6348,7 +6348,7 @@ generally slower on larger files.") (home-page "http://search.cpan.org/dist/Text-Glob") (synopsis "Match globbing patterns against text") (description "Text::Glob implements glob(3) style matching that can be -used to match against text, rather than fetching names from a filesystem. If +used to match against text, rather than fetching names from a file system. If you want to do full file globbing use the File::Glob module instead.") (license (package-license perl)))) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0671444ca5..2f349c88f3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6943,7 +6943,7 @@ WebSocket usage in Python programs.") (build-system python-build-system) (synopsis "Atomic file writes in Python") (description "Library for atomic file writes using platform dependent tools -for atomic filesystem operations.") +for atomic file system operations.") (home-page "https://github.com/untitaker/python-atomicwrites") (license license:expat) (properties `((python2-variant . ,(delay python2-atomicwrites)))))) @@ -8571,8 +8571,8 @@ library.") (replace 'check (lambda _ (zero? (system* "python" "./test_pathlib.py"))))))) (home-page "https://pathlib.readthedocs.org/") - (synopsis "Object-oriented filesystem paths") - (description "Pathlib offers a set of classes to handle filesystem paths. + (synopsis "Object-oriented file system paths") + (description "Pathlib offers a set of classes to handle file system paths. It offers the following advantages over using string objects: @enumerate diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index 60f902f96a..9eb4039f84 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -165,7 +165,7 @@ for parsing HTML files.") "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh")))) (build-system gnu-build-system) (home-page "https://fedorahosted.org/mlocate/") - (synopsis "Locate files on the filesystem") + (synopsis "Locate files on the file system") (description "mlocate is a locate/updatedb implementation. The 'm' stands for \"merging\": @code{updatedb} reuses the existing database to avoid rereading diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 412ec77bc5..0762703800 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -161,7 +161,7 @@ living in the same process.") ;; the location of the system-wide trust store. Instead it has a ;; configure-time option. Unless specified, its configure script ;; attempts to auto-detect the location by looking for common - ;; places in the filesystem, none of which are present in our + ;; places in the file system, none of which are present in our ;; chroot build environment. If not found, then no default trust ;; store is used, so each program has to provide its own ;; fallback, and users have to configure each program diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm index 46dbab6645..d94532c353 100644 --- a/gnu/services/mail.scm +++ b/gnu/services/mail.scm @@ -987,7 +987,7 @@ could allow a user to delete others' mailboxes, or ln -s (mail-full-filesystem-access? (boolean #f) - "Allow full filesystem access to clients. There's no access checks + "Allow full file system access to clients. There's no access checks other than what the operating system does for the active UID/GID. It works with both maildir and mboxes, allowing you to prefix mailboxes names with e.g. /path/ or ~user/.") @@ -997,7 +997,7 @@ names with e.g. /path/ or ~user/.") (mmap-disable? (boolean #f) "Don't use mmap() at all. This is required if you store indexes to -shared filesystems (NFS or clustered filesystem).") +shared file systems (NFS or clustered file system).") (dotlock-use-excl? (boolean #t) @@ -1229,7 +1229,7 @@ disabled.") (boolean #f) "When creating new mdbox files, immediately preallocate their size to @samp{mdbox-rotate-size}. This setting currently works only in Linux -with some filesystems (ext4, xfs).") +with some file systems (ext4, xfs).") (mail-attachment-dir (string "") @@ -1249,7 +1249,7 @@ externally.") (mail-attachment-fs (string "sis posix") - "Filesystem backend to use for saving attachments: + "File system backend to use for saving attachments: @table @code @item posix No SiS done by Dovecot (but this might help FS's own deduplication) -- cgit v1.3 From 4efb9c547870c61ef8971a28e6ccfaef38335ddb Mon Sep 17 00:00:00 2001 From: Stefan Reichoer Date: Fri, 16 Sep 2016 21:43:32 +0200 Subject: gnu: Add python-glances. * gnu/packages/python.scm (python-glances, python2-glances): New variables. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2f349c88f3..027a9f2824 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -27,6 +27,7 @@ ;;; Copyright © 2016 Dylan Jeffers ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Marius Bakke +;;; Copyright © 2016 Stefan Reichoer ;;; ;;; This file is part of GNU Guix. ;;; @@ -10475,3 +10476,36 @@ functionality in the command line.") ("python2-mock" ,python2-mock) ("python2-enum34" ,python2-enum34) ,@(package-native-inputs base)))))) + +(define-public python-glances + (package + (name "python-glances") + (version "2.7.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Glances" version)) + (sha256 + (base32 + "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg")))) + (build-system python-build-system) + (inputs + `(("python-psutil" ,python-psutil))) + (home-page + "https://github.com/nicolargo/glances") + (synopsis + "A cross-platform curses-based monitoring tool") + (description + "Glances is a curses-based monitoring tool for a wide variety of platforms. +Glances uses the PsUtil library to get information from your system. It monitors +CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") + (license license:lgpl3+) + (properties `((python2-variant . ,(delay python2-glances)))))) + +(define-public python2-glances + (let ((base (package-with-python2 (strip-python2-variant python-glances)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From 4d3fa5a4215c6daa3fbd5ef96e55a7aa96211ee6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:20:58 +0300 Subject: gnu: Add python-pika. * gnu/packages/python.scm (python-pika): New variable. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 027a9f2824..055e6e2d90 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9200,6 +9200,31 @@ focus on event-based network programming and multiprotocol integration.") (define-public python2-twisted (package-with-python2 python-twisted)) +(define-public python-pika + (package + (name "python-pika") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pika" version)) + (sha256 + (base32 + "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) + (build-system python-build-system) + (native-inputs + `(("python-twisted" ,python-twisted))) + (home-page "https://pika.readthedocs.org") + (synopsis "Pure Python AMQP Client Library") + (description + "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing +Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying +network support library.") + (license license:bsd-3))) + +(define-public python2-pika + (package-with-python2 python-pika)) + (define-public python-ply (package (name "python-ply") -- cgit v1.3 From 5cb2fe446bf3357e3320bfd5c00ccfac131cd4fd Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:24:25 +0300 Subject: gnu: Add python-promise. * gnu/packages/python.scm (python-promise): New variable. --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 055e6e2d90..86d099a291 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7442,6 +7442,40 @@ asynchronously executing callables. This package backports the concurrent.futures package from Python 3.2") (license license:bsd-3))) +(define-public python-promise + (package + (name "python-promise") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "promise" version)) + (sha256 + (base32 + "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h")))) + (build-system python-build-system) + ;; Tests wants python-futures, which is a python2 only program, and + ;; can't be found by python-promise at test time. + (arguments `(#:tests? #f)) + (home-page "https://github.com/syrusakbary/promise") + (synopsis "Promises/A+ implementation for Python") + (description + "Promises/A+ implementation for Python") + (properties `((python2-variant . ,(delay python2-promise)))) + (license license:expat))) + +(define-public python2-promise + (let ((promise (package-with-python2 + (strip-python2-variant python-promise)))) + (package (inherit promise) + (arguments (substitute-keyword-arguments (package-arguments promise) + ((#:tests? _) #t))) + (native-inputs + `(("python2-futures" ,python2-futures) + ("python2-pytest" ,python2-pytest) + ("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs promise)))))) + (define-public python-urllib3 (package (name "python-urllib3") -- cgit v1.3 From 44547e51530e93ac6215bd32f2ee9e00b426544d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:25:59 +0300 Subject: gnu: Add python-pytest-mock. * gnu/packages/python.scm (python-pytest-mock): New variable. --- gnu/packages/python.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 86d099a291..590a0566e5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1684,6 +1684,45 @@ supports coverage of subprocesses.") (define-public python2-pytest-runner (package-with-python2 python-pytest-runner)) +(define-public python-pytest-mock + (package + (name "python-pytest-mock") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-mock" version ".zip")) + (sha256 + (base32 + "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) + (inputs + `(("python-py" ,python-py) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/pytest-dev/pytest-mock/") + (synopsis "Thin-wrapper around the mock package for easier use with py.test") + (description + "This plugin installs a @code{mocker} fixture which is a thin-wrapper +around the patching API provided by the @code{mock} package, but with the +benefit of not having to worry about undoing patches at the end of a test. +The mocker fixture has the same API as @code{mock.patch}, supporting the +same arguments.") + (properties `((python2-variant . ,(delay python2-pytest-mock)))) + (license license:expat))) + +(define-public python2-pytest-mock + (let ((base (package-with-python2 + (strip-python2-variant python-pytest-mock)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base))) + (inputs + `(("python2-mock" ,python2-mock) + ,@(package-inputs base)))))) + (define-public python-pytest-xdist (package (name "python-pytest-xdist") -- cgit v1.3 From 05b7a593367d541f1a7a7be3a13bb2834c235257 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:27:29 +0300 Subject: gnu: Add python-graphql-core. * gnu/packages/python.scm (python-graphql-core): New variable. --- gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 590a0566e5..f52ecfbf0d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10607,3 +10607,48 @@ CPU, load, memory, network bandwidth, disk I/O, disk use, and more.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-graphql-core + (package + (name "python-graphql-core") + (version "0.5.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "graphql-core" version)) + (sha256 + (base32 + "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-hardcoded-version + (lambda _ (substitute* + "setup.py" + (("'gevent==1.1rc1'") "'gevent'")) + #t))))) + (native-inputs + `(("python-gevent" ,python-gevent) + ("python-mock" ,python-mock) + ("python-pytest-mock" ,python-pytest-mock))) + (inputs + `(("python-promise" ,python-promise) + ("python-six" ,python-six))) + (home-page "https://github.com/graphql-python/graphql-core") + (synopsis "GraphQL implementation for Python") + (description + "GraphQL implementation for Python. GraphQL is a data query language and +runtime designed and used to request and deliver data to mobile and web apps. +This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js} +to Python.") + (properties `((python2-variant . ,(delay python2-graphql-core)))) + (license license:expat))) + +(define-public python2-graphql-core + (let ((base (package-with-python2 + (strip-python2-variant python-graphql-core)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From 7ee51575792e1030f4baedb20899217b2534708b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:28:12 +0300 Subject: gnu: Add python-graphql-relay. * gnu/packages/python.scm (python-graphql-relay): New variable. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f52ecfbf0d..3cb4a8fbfb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10652,3 +10652,40 @@ to Python.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-graphql-relay + (package + (name "python-graphql-relay") + (version "0.4.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "graphql-relay" version)) + (sha256 + (base32 + "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (inputs + `(("python-graphql-core" ,python-graphql-core) + ("python-promise" ,python-promise) + ("python-six" ,python-six))) + (home-page "https://github.com/graphql-python/graphql-relay-py") + (synopsis "Relay implementation for Python") + (description + "This is a library to allow the easy creation of Relay-compliant servers +using the GraphQL Python reference implementation of a GraphQL server. It +should be noted that the code is a exact port of the original +@url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} +from Facebook.") + (properties `((python2-variant . ,(delay python2-graphql-relay)))) + (license license:expat))) + +(define-public python2-graphql-relay + (let ((base (package-with-python2 + (strip-python2-variant python-graphql-relay)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.3 From de2966cfe8bab5f3284888002d84c490c2308137 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:29:55 +0300 Subject: gnu: Add python-sqlalchemy-utils. * gnu/packages/python.scm (python-sqlalchemy-utils): New variable. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3cb4a8fbfb..07b77d7b0e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3695,6 +3695,37 @@ simple and Pythonic domain language.") (define-public python2-sqlalchemy (package-with-python2 python-sqlalchemy)) +(define-public python-sqlalchemy-utils + (package + (name "python-sqlalchemy-utils") + (version "0.32.9") + (source + (origin + (method url-fetch) + (uri (pypi-uri "SQLAlchemy-Utils" version)) + (sha256 + (base32 + "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98")))) + (build-system python-build-system) + (inputs + `(("python-six" ,python-six) + ("python-sqlalchemy" ,python-sqlalchemy))) + (home-page "https://github.com/kvesteri/sqlalchemy-utils") + (synopsis "Various utility functions for SQLAlchemy") + (description + "SQLAlchemy-utils provides various utility functions and custom data types +for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.") + (properties `((python2-variant . ,(delay python2-sqlalchemy-utils)))) + (license license:bsd-3))) + +(define-public python2-sqlalchemy-utils + (let ((base (package-with-python2 + (strip-python2-variant python-sqlalchemy-utils)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) + (define-public python-alembic (package (name "python-alembic") -- cgit v1.3 From ddc63a561193bcbda04bcc70f9c2c992bdb9e577 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:32:49 +0300 Subject: gnu: Add python-graphene. * gnu/packages/python.scm (python-graphene): New variable. --- gnu/packages/python.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 07b77d7b0e..648b8bec0b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -53,6 +53,7 @@ #:use-module (gnu packages backup) #:use-module (gnu packages compression) #:use-module (gnu packages databases) + #:use-module (gnu packages django) #:use-module (gnu packages file) #:use-module (gnu packages fontutils) #:use-module (gnu packages gcc) @@ -10720,3 +10721,45 @@ from Facebook.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-graphene + (package + (name "python-graphene") + (version "0.10.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "graphene" version)) + (sha256 + (base32 + "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q")))) + (build-system python-build-system) + (native-inputs + `(("python-django-filter" ,python-django-filter) + ("python-mock" ,python-mock) + ("python-psycopg2" ,python-psycopg2) + ("python-pytest-django" ,python-pytest-django) + ("python-sqlalchemy-utils" ,python-sqlalchemy-utils))) + (inputs + `(("python-graphql-core" ,python-graphql-core) + ("python-graphql-relay" ,python-graphql-relay) + ("python-iso8601" ,python-iso8601) + ("python-promise" ,python-promise) + ("python-six" ,python-six))) + (home-page "http://graphene-python.org/") + (synopsis "GraphQL Framework for Python") + (description + "Graphene is a Python library for building GraphQL schemas/types. +A GraphQL schema describes your data model, and provides a GraphQL server +with an associated set of resolve methods that know how to fetch data.") + (properties `((python2-variant . ,(delay python2-graphene)))) + (license license:expat))) + +(define-public python2-graphene + (let ((base (package-with-python2 + (strip-python2-variant python-graphene)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ("python2-sqlalchemy" ,python2-sqlalchemy) + ,@(package-native-inputs base)))))) -- cgit v1.3 From 257023978aca29d381d63d00e4a6cc1d1bd2857a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:33:40 +0300 Subject: gnu: Add python-consul. * gnu/packages/python.scm (python-consul): New variable. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 648b8bec0b..edc99dc0d4 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10213,6 +10213,36 @@ interface for programs.") `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) +(define-public python-consul + (package + (name "python-consul") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-consul" version)) + (sha256 + (base32 + "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-requests" ,python-requests) + ("python-six" ,python-six))) + (home-page "https://github.com/cablehead/python-consul") + (synopsis "Python client for Consul") + (description + "Python client for @url{http://www.consul.io/,Consul}, a tool for service +discovery, monitoring and configuration.") + (license license:expat))) + +(define-public python2-consul + (let ((consul (package-with-python2 python-consul))) + (package (inherit consul) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs consul)))))) + (define-public python-schematics (package (name "python-schematics") -- cgit v1.3 From 12f839fdf685e68dda8f38af1bbb192fa4199d25 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:34:42 +0300 Subject: gnu: Add python-cov-core. * gnu/packages/python.scm (python-cov-core): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index edc99dc0d4..7536259c64 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2104,6 +2104,34 @@ executed.") (define-public python2-coverage (package-with-python2 python-coverage)) +(define-public python-cov-core + (package + (name "python-cov-core") + (version "1.15.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cov-core" version)) + (sha256 + (base32 + "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a")))) + (build-system python-build-system) + (native-inputs + `(("python-coverage" ,python-coverage))) + (home-page "https://github.com/schlamar/cov-core") + (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov") + (description + "This is a library package for use by pytest-cov, nose-cov and nose2-cov. +It is useful for developing coverage plugins for these testing frameworks.") + (license license:expat))) + +(define-public python2-cov-core + (let ((cov-core (package-with-python2 python-cov-core))) + (package (inherit cov-core) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs cov-core)))))) + (define-public python-discover (package (name "python-discover") -- cgit v1.3 From 0aea283a65a7b0095c00abd5808523f4e02427d2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:35:37 +0300 Subject: gnu: Add python-nose2. * gnu/packages/python.scm (python-nose2): New variable. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7536259c64..d6052fa4bd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1507,6 +1507,37 @@ matching them against a list of media-ranges.") (define-public python2-nose (package-with-python2 python-nose)) +(define-public python-nose2 + (package + (name "python-nose2") + (version "0.6.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nose2" version)) + (sha256 + (base32 + "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector' + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (inputs + `(("python-cov-core" ,python-cov-core) + ("python-pytest-cov" ,python-pytest-cov) + ("python-six" ,python-six))) + (home-page "https://github.com/nose-devs/nose2") + (synopsis "Next generation of nicer testing for Python") + (description + "Nose2 is the next generation of nicer testing for Python, based on the +plugins branch of unittest2. Nose2 aims to improve on nose by providing a +better plugin api, being easier for users to configure, and simplifying internal +interfaces and processes.") + (license license:bsd-2))) + +(define-public python2-nose2 + (package-with-python2 python-nose2)) + (define-public python-unittest2 (package (name "python-unittest2") -- cgit v1.3 From d488d5d65b1bfb85da5277bd4697a29d75b2d373 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Sep 2016 21:39:22 +0300 Subject: gnu: Add python-nautilus. * gnu/packages/python.scm (python-nautilus): New variable. --- gnu/packages/python.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d6052fa4bd..038237d6fd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -72,6 +72,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages networking) #:use-module (gnu packages ncurses) + #:use-module (gnu packages password-utils) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -90,7 +91,6 @@ #:use-module (gnu packages zip) #:use-module (gnu packages tcl) #:use-module (gnu packages bdw-gc) - #:use-module (gnu packages pcre) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -10852,3 +10852,41 @@ with an associated set of resolve methods that know how to fetch data.") `(("python2-setuptools" ,python2-setuptools) ("python2-sqlalchemy" ,python2-sqlalchemy) ,@(package-native-inputs base)))))) + +(define-public python-nautilus + (package + (name "python-nautilus") + (version "0.4.9") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nautilus" version)) + (sha256 + (base32 + "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) ; fails to import test modules + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (inputs + `(("python-bcrypt" ,python-bcrypt) + ("python-click" ,python-click) + ("python-consul" ,python-consul) + ("python-graphql-core" ,python-graphql-core) + ("python-graphql-relay" ,python-graphql-relay) + ("python-graphene" ,python-graphene) + ("python-jinja2" ,python-jinja2) + ("python-nose2" ,python-nose2) + ("python-peewee" ,python-peewee) + ("python-pika" ,python-pika) + ("python-pycparser" ,python-pycparser) + ("python-requests" ,python-requests) + ("python-tornado" ,python-tornado) + ("python-wtforms" ,python-wtforms))) + (home-page "https://github.com/AlecAivazis/nautilus") + (synopsis "Library for creating microservice applications") + (description + "Nautilus is a framework for flux based microservices that looks to +provide extendible implementations of common aspects of a cloud so that you can +focus on building massively scalable web applications.") + (license license:expat))) -- cgit v1.3 From 8120205ccd4f2d835552ed3bda5e9a9a533078df Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 19 Sep 2016 23:22:36 +0300 Subject: gnu: python2-cov-core: Use strip-python2-variant. * gnu/packages/python.scm (python-cov-core)[properties]: New field, declare python2-variant. (python2-cov-core): Use strip-python2-variant. --- gnu/packages/python.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 038237d6fd..96589fc165 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2154,10 +2154,11 @@ executed.") (description "This is a library package for use by pytest-cov, nose-cov and nose2-cov. It is useful for developing coverage plugins for these testing frameworks.") - (license license:expat))) + (license license:expat) + (properties `((python2-variant . ,(delay python2-cov-core)))))) (define-public python2-cov-core - (let ((cov-core (package-with-python2 python-cov-core))) + (let ((cov-core (package-with-python2 (strip-python2-variant python-cov-core)))) (package (inherit cov-core) (native-inputs `(("python2-setuptools" ,python2-setuptools) -- cgit v1.3 From b04a52a6fff5227c40feaca68984fed24dd28711 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Sat, 13 Aug 2016 12:23:31 -0700 Subject: gnu: Add python-requests-oauthlib. * gnu/packages/python.scm (python-requests-oauthlib, python2-requests-oauthlib): New variables. Signed-off-by: Efraim Flashner --- gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 96589fc165..65e6389708 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2016 Stefan Reichoer +;;; Copyright © 2016 Dylan Jeffers ;;; ;;; This file is part of GNU Guix. ;;; @@ -72,6 +73,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages networking) #:use-module (gnu packages ncurses) + #:use-module (gnu packages openstack) #:use-module (gnu packages password-utils) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) @@ -10033,6 +10035,49 @@ etc.") (inherit base) (name "ptpython2")))) +(define-public python-requests-oauthlib + (package + (name "python-requests-oauthlib") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "requests-oauthlib" version)) + (sha256 + (base32 + "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; removes tests that require network access + (add-before 'check 'pre-check + (lambda _ + (delete-file "tests/test_core.py") + #t))))) + (native-inputs + `(("python-requests-mock" ,python-requests-mock) + ("python-mock" ,python-mock))) + (inputs + `(("python-oauthlib" ,python-oauthlib) + ("python-requests" ,python-requests))) + (home-page + "https://github.com/requests/requests-oauthlib") + (synopsis + "OAuthlib authentication support for Requests") + (description + "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to +provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") + (license license:isc) + (properties `((python2-variant . ,(delay python2-requests-oauthlib)))))) + +(define-public python2-requests-oauthlib + (let ((base (package-with-python2 (strip-python2-variant python-requests-oauthlib)))) + (package + (inherit base) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) + (define-public python-stem (package (name "python-stem") -- cgit v1.3 From e2ab5a09048e648e6128ad173df3ece8a673c9a3 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Wed, 21 Sep 2016 11:49:32 +1000 Subject: gnu: python-click: Hardlink path to 'locale'. * gnu/packages/python.scm (python-click, python2-click)[arguments]: New field. --- gnu/packages/python.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 65e6389708..af5da9beeb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2307,6 +2307,17 @@ is used by the Requests library to verify HTTPS requests.") (base32 "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((glibc (assoc-ref inputs ,(if (%current-target-system) + "cross-libc" "libc")))) + (substitute* "click/_unicodefun.py" + (("'locale'") + (string-append "'" glibc "/bin/locale'")))) + #t))))) (native-inputs `(("python-setuptools" ,python-setuptools))) (home-page "http://click.pocoo.org") -- cgit v1.3 From 375f224b6869c152a7de68350f2c6faf40544c36 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Wed, 21 Sep 2016 11:58:39 +1000 Subject: gnu: python-click: Use 'pypi-uri'. * gnu/packages/python.scm (python-click, python2-click)[source]: Use 'pypi-uri'. --- gnu/packages/python.scm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index af5da9beeb..a1865574cb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2299,10 +2299,7 @@ is used by the Requests library to verify HTTPS requests.") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/" - "7a/00/c14926d8232b36b08218067bcd5853caefb4737cda3f0a47437151344792/" - "click-" version ".tar.gz")) + (uri (pypi-uri "click" version)) (sha256 (base32 "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc")))) -- cgit v1.3 From 7adc698f69eaa5195a9dc956a6466e1ba6858eb2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 22 Sep 2016 20:58:30 +0300 Subject: gnu: python-fake-factory: Update to 0.7.2. * gnu/packages/python.scm (python-fake-factory): Update to 0.7.2. [arguments]: Remove phase disabling failing test. [home-page]: Use https. --- gnu/packages/python.scm | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a1865574cb..353443018a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9816,24 +9816,14 @@ parsing UK postcodes.") (define-public python-fake-factory (package (name "python-fake-factory") - (version "0.5.7") + (version "0.7.2") (source (origin (method url-fetch) (uri (pypi-uri "fake-factory" version)) (sha256 (base32 - "1chmarnrdzn4r017n8qlic0m0bbnhw04s3hkwribjvm3mqpb6pa0")))) + "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g")))) (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-before 'check 'disable-failing-test - ;; XXX: faker/tests/ne_np/__init__.py, line 40, in test_names - ;; first_name, last_name = name.split() - ;; ValueError: too many values to unpack (expected 2) - (lambda _ - (delete-file "faker/tests/ne_np/__init__.py") - #t))))) (native-inputs `(("python-setuptools" ,python-setuptools) ;; For testing @@ -9843,7 +9833,7 @@ parsing UK postcodes.") (propagated-inputs `(("python-dateutil" ,python-dateutil-2) ("python-six" ,python-six))) - (home-page "http://github.com/joke2k/faker") + (home-page "https://github.com/joke2k/faker") (synopsis "Python package that generates fake data") (description "Faker is a Python package that generates fake data such as names, -- cgit v1.3 From 58d04dbaf08f425bc6c5a349bbc6a6083aeac230 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 24 Sep 2016 09:58:16 +0200 Subject: gnu: python-virtualenv: Update to 15.0.3. * gnu/packages/python.scm (python-virtualenv): Update to 15.0.3. [arguments]: Disable failing test. --- gnu/packages/python.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 353443018a..688a5d4ee8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2612,20 +2612,25 @@ object.") (define-public python-virtualenv (package (name "python-virtualenv") - (version "13.1.2") + (version "15.0.3") (source (origin (method url-fetch) (uri (pypi-uri "virtualenv" version)) (sha256 (base32 - "1p732accxwqfjbdna39k8w8lp9gyw91vr4kzkhm8mgfxikqqxg5a")))) + "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda _ (zero? (system* "py.test"))))))) + (replace 'check + (lambda _ + ;; Disable failing test. See upstream bug report + ;; https://github.com/pypa/virtualenv/issues/957 + (substitute* "tests/test_virtualenv.py" + (("skipif.*") "skipif(True, reason=\"Guix\")\n")) + (zero? (system* "py.test"))))))) (inputs `(("python-setuptools" ,python-setuptools) ("python-mock" ,python-mock) -- cgit v1.3 From 67f66812f5ef1bfba59cfd53ace6f41196cd0227 Mon Sep 17 00:00:00 2001 From: Ben J Woodcroft Date: Mon, 26 Sep 2016 15:26:17 +1000 Subject: gnu: Add python-termcolor. * gnu/packages/python.scm (python-termcolor, python2-termcolor): New variables. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 688a5d4ee8..529b7fdb09 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6295,6 +6295,30 @@ a hash value.") (name "python2-tlsh") (inputs `(("python" ,python-2))))) +(define-public python-termcolor + (package + (name "python-termcolor") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-termcolor" version)) + (sha256 + (base32 + "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x")))) + (build-system python-build-system) + (arguments + ;; There are no tests. + `(#:tests? #f)) + (home-page "http://pypi.python.org/pypi/termcolor") + (synopsis "ANSII Color formatting for terminal output") + (description + "This package provides ANSII Color formatting for output in terminals.") + (license license:expat))) + +(define-public python2-termcolor + (package-with-python2 python-termcolor)) + (define-public python-libarchive-c (package (name "python-libarchive-c") -- cgit v1.3 From e8c9b010908d33c9103839b8d8fddd9e33a731ef Mon Sep 17 00:00:00 2001 From: Stefan Reichoer Date: Fri, 16 Sep 2016 23:00:06 +0200 Subject: gnu: Add python-q. * gnu/packages/python.scm (python-q, python2-q): New variables. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 529b7fdb09..90dd1b7d4d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5008,6 +5008,35 @@ as possible in order to be comprehensible and easily extensible.") (define-public python2-sympy (package-with-python2 python-sympy)) +(define-public python-q + (package + (name "python-q") + (version "2.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "q" version)) + (sha256 + (base32 + "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy")))) + (build-system python-build-system) + (home-page "https://github.com/zestyping/q") + (synopsis "Quick-and-dirty debugging output for tired programmers") + (description + "q is a Python module for \"print\" style of debugging Python code. It +provides convenient short API for print out of values, tracebacks, and +falling into the Python interpreter.") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-q)))))) + +(define-public python2-q + (let ((base (package-with-python2 (strip-python2-variant python-q)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) + (define-public python-testlib (package (name "python-testlib") -- cgit v1.3