From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6GoHN0ZPgV9MDgAA0tVLHw (envelope-from ) for ; Sat, 10 Oct 2020 06:05:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2Iz+MkZPgV9gAgAAbx9fmQ (envelope-from ) for ; Sat, 10 Oct 2020 06:05:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B95F99409D5 for ; Sat, 10 Oct 2020 06:05:18 +0000 (UTC) Received: from localhost ([::1]:53028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kR80I-0002Su-An for larch@yhetil.org; Sat, 10 Oct 2020 02:05:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kR806-0002Sm-Fz for guix-patches@gnu.org; Sat, 10 Oct 2020 02:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kR806-0003sl-6h for guix-patches@gnu.org; Sat, 10 Oct 2020 02:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kR806-0007rD-1i for guix-patches@gnu.org; Sat, 10 Oct 2020 02:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43901] [PATCH] gnu: Add python-dpath. Resent-From: Joseph LaFreniere Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Oct 2020 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43901 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43901@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160230988430174 (code B ref -1); Sat, 10 Oct 2020 06:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Oct 2020 06:04:44 +0000 Received: from localhost ([127.0.0.1]:36788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kR7zn-0007qc-Km for submit@debbugs.gnu.org; Sat, 10 Oct 2020 02:04:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:41796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kR7zk-0007qS-4P for submit@debbugs.gnu.org; Sat, 10 Oct 2020 02:04:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kR7zj-0002Qo-8s for guix-patches@gnu.org; Sat, 10 Oct 2020 02:04:40 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:9302) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kR7zg-0003rt-UV for guix-patches@gnu.org; Sat, 10 Oct 2020 02:04:38 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id 8FA0440AB7 for ; Sat, 10 Oct 2020 08:04:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1602309872; x=1604124273; bh=ntjr98n0B4y0Ohlknbl PPQd3Qv9ocVMSuGwMfAAx3XA=; b=32SEyt/DKUu8NDGegCpCh0FdpiXiCRJDmXR W0zkEYI6KTCbWKaDdhqdA2znnpu8c3Lk9jHg3K9Q47osKqVLSV4HLMoKHxCRKBaW 0jtsJMmdNDkIXaLaiJOlQsvZL6Txy8r05ujjS3WXDX+tACdtItm626446RVI4beF +nIFuSsV1GASOD7t15QD96qEMLLQxk9mOKEOdrRqjkitoNl2UmUMwtZGFcVpqqjm NpTUo6iG2tw9XjJjGqc6MgQtr/bTrx8QmG4DpLOueNOrgj52kJs3MEfY+M6Tv8TA IBBpgSnIxoopFxLhYsRK4y8nBMWkwWMT1fMKuL9Rxf0bApa2kufSee0XlCdQ9tYF 4PGd8zMekPffN/dvlo0Go81HkjHHi8LMd/UY6FpAXkp3KbVye2w9VgdMdidK4xDD CcGpQo/T6J56wteQhfxbKHxheKoo1qjdE7L4/d9EF5i+ebBoOIpTXATJWOdfgzNn 7msrOxZWmYIPIThb5L/1yasjUs58c0j/SagCzfqZ6ZnphpYhN2I+mqNNYsR0Dh4k YhImhjynl+Wtr9M41pMN+NdDxJCbBDS1paluXUxBq1Z9fhDyO5VDAQDRd1JT/NeF MrQLdoVPy3JUK0qHgRgwUEkeKaCRgw1AtK+WEL836Lg7WYYyPrwXyqF987SU7B+o 3y2iJZWE= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Score: -1.9 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6dpCt0Ykv4zF for ; Sat, 10 Oct 2020 08:04:32 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id B8AB3407AC for ; Sat, 10 Oct 2020 08:04:32 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 647623CE for ; Sat, 10 Oct 2020 08:04:32 +0200 (CEST) From: Joseph LaFreniere Date: Sat, 10 Oct 2020 01:04:28 -0500 Message-ID: <875z7ity4z.fsf@odyssey.lafreniere.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=95.128.36.40; envelope-from=joseph@lafreniere.xyz; helo=mx.kolabnow.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/10 02:04:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FROM_SUSPICIOUS_NTLD=0.497, FROM_SUSPICIOUS_NTLD_FP=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.1 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 0.1 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-TUID: 9ce9NVvUev9n --=-=-= Content-Type: text/plain; format=flowed Patch file is attached. -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-python-dpath.patch >From bbcc2040697a459a6b5a0e2a91780cd2a3094e28 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere 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 --=-=-=--