[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/10: gnu: Add python-dpath.
From: |
guix-commits |
Subject: |
10/10: gnu: Add python-dpath. |
Date: |
Tue, 13 Oct 2020 17:37:26 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit e8c5533d26b4441c96e9ae92350efcb24d787c4b
Author: Joseph LaFreniere <joseph@lafreniere.xyz>
AuthorDate: Sat Oct 10 01:03:18 2020 -0500
gnu: Add python-dpath.
* gnu/packages/python-xyz.scm (python-dpath): New variable.
Signed-off-by: Marius Bakke <marius@gnu.org>
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f5c5860..10fa9b5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22067,6 +22067,42 @@ dates in almost any string formats commonly found on
web pages.")
(description "This package provides a parser for Python dependency files.")
(license license:expat)))
+(define-public python-dpath
+ (package
+ (name "python-dpath")
+ (version "2.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "dpath" version))
+ (sha256
+ (base32
+ "1ymi9ssk7i0mx3mviplf4csfvzibdd6wyj4qzj6s487n9xgnp85y"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-hypothesis" ,python-hypothesis)
+ ("python-mock" ,python-mock)
+ ("python-nose" ,python-nose)))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ ;; This invokation is taken from tox.ini.
+ (invoke "nosetests" "-d" "-v" "tests/"))))))
+ (home-page "https://github.com/akesterson/dpath-python")
+ (synopsis "Filesystem-like pathing and searching for dictionaries")
+ (description
+ "@code{python-dpath} is a library for accessing and searching
+dictionaries via /slashed/paths ala xpath.
+
+Basically it lets you glob over a dictionary as if it were a filesystem. It
+allows you to specify globs (ala the bash eglob syntax, through some advanced
+fnmatch.fnmatch magic) to access dictionary elements, and provides some
+facility for filtering those results.")
+ (license license:expat)))
+
(define-public python-safety
(package
(name "python-safety")
- branch master updated (ada061c -> e8c5533), guix-commits, 2020/10/13
- 01/10: gnu: Remove python2-gst., guix-commits, 2020/10/13
- 02/10: gnu: xf86-input-libinput: Update to 0.30.0., guix-commits, 2020/10/13
- 04/10: gnu: Add dex., guix-commits, 2020/10/13
- 06/10: gnu: muchsync: Use pandoc instead of ghc-pandoc., guix-commits, 2020/10/13
- 07/10: gnu: git-annex: Update to 8.20201007., guix-commits, 2020/10/13
- 08/10: gnu: Add bindfs., guix-commits, 2020/10/13
- 09/10: gnu: Add python-dictdiffer., guix-commits, 2020/10/13
- 10/10: gnu: Add python-dpath.,
guix-commits <=
- 05/10: gnu: python-chardet: Enable tests., guix-commits, 2020/10/13
- 03/10: gnu: nmap: Update license., guix-commits, 2020/10/13