Skip to content
Snippets Groups Projects
Unverified Commit e8c5533d authored by Joseph LaFreniere's avatar Joseph LaFreniere Committed by Marius Bakke
Browse files

gnu: Add python-dpath.


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

Signed-off-by: default avatarMarius Bakke <marius@gnu.org>
parent 23a97f52
No related branches found
No related tags found
No related merge requests found
...@@ -22067,6 +22067,42 @@ (define-public python-dparse ...@@ -22067,6 +22067,42 @@ (define-public python-dparse
(description "This package provides a parser for Python dependency files.") (description "This package provides a parser for Python dependency files.")
(license license:expat))) (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 (define-public python-safety
(package (package
(name "python-safety") (name "python-safety")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment