unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#43901] [PATCH] gnu: Add python-dpath.
@ 2020-10-10  6:04 Joseph LaFreniere
  2020-10-13 21:31 ` bug#43901: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph LaFreniere @ 2020-10-10  6:04 UTC (permalink / raw)
  To: 43901

[-- Attachment #1: Type: text/plain, Size: 46 bytes --]

Patch file is attached.

--
Joseph LaFreniere

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-dpath.patch --]
[-- Type: text/x-patch, Size: 2211 bytes --]

From bbcc2040697a459a6b5a0e2a91780cd2a3094e28 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sat, 10 Oct 2020 01:03:18 -0500
Subject: [PATCH] gnu: Add python-dpath.

* gnu/packages/python-xyz.scm (python-dpath): New variable.
---
 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 0670eb7e08..983c160104 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22036,6 +22036,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://www.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")
-- 
2.28.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#43901: [PATCH] gnu: Add python-dpath.
  2020-10-10  6:04 [bug#43901] [PATCH] gnu: Add python-dpath Joseph LaFreniere
@ 2020-10-13 21:31 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2020-10-13 21:31 UTC (permalink / raw)
  To: Joseph LaFreniere, 43901-done

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

Joseph LaFreniere <joseph@lafreniere.xyz> writes:

> Patch file is attached.

Applied, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-13 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-10  6:04 [bug#43901] [PATCH] gnu: Add python-dpath Joseph LaFreniere
2020-10-13 21:31 ` bug#43901: " Marius Bakke

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git