* [bug#50799] [PATCH] gnu: Add python-glom.
@ 2021-09-25 7:47 jgart via Guix-patches via
2021-09-25 7:49 ` [bug#50799] [PATCH 1/2] gnu: Add python-face jgart via Guix-patches via
2021-09-28 18:48 ` bug#50799: [PATCH] " Arun Isaac
0 siblings, 2 replies; 5+ messages in thread
From: jgart via Guix-patches via @ 2021-09-25 7:47 UTC (permalink / raw)
To: 50799
Hi,
Below are patches for glom and face.
https://github.com/mahmoud/glom
https://github.com/mahmoud/face
all best,
jgart
3B1D 7F19 E36B B60C 0F5B 2CA9 A52A A2B4 77B6 DD35
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#50799] [PATCH 1/2] gnu: Add python-face.
2021-09-25 7:47 [bug#50799] [PATCH] gnu: Add python-glom jgart via Guix-patches via
@ 2021-09-25 7:49 ` jgart via Guix-patches via
2021-09-25 7:49 ` [bug#50799] [PATCH 2/2] gnu: Add python-glom jgart via Guix-patches via
2021-09-28 18:48 ` bug#50799: [PATCH] " Arun Isaac
1 sibling, 1 reply; 5+ messages in thread
From: jgart via Guix-patches via @ 2021-09-25 7:49 UTC (permalink / raw)
To: 50799; +Cc: jgart
* gnu/packages/python-xyz.scm (python-face): New variable.
---
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bfe7031eba..9e3a1144f6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26970,6 +26970,43 @@ location. This small Python module determines the appropriate
platform-specific directories, e.g. the ``user data dir''.")
(license license:expat)))
+(define-public python-face
+ (package
+ (name "python-face")
+ (version "20.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "face" version))
+ (sha256
+ (base32 "0gpd9f0rmbv3rd2szi2na37l29fabkwazikjrxc6wca1lddwlnbx"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-v" "face/test")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-boltons" ,python-boltons)))
+ (home-page "https://github.com/mahmoud/face")
+ (synopsis "Straightforward CLI parsing and dispatching microframework")
+ (description
+"@code{face} is a Pythonic microframework for building command-line
+applications:
+@itemize
+@item First-class subcommand support
+@item Powerful middleware architecture
+@item Separate Parser layer
+@item Built-in flagfile support
+@item Handy testing utilities
+@item Themeable help display
+@end itemize")
+ (license license:bsd-3)))
(define-public python-box
(package
(name "python-box")
--
2.33.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#50799] [PATCH 2/2] gnu: Add python-glom.
2021-09-25 7:49 ` [bug#50799] [PATCH 1/2] gnu: Add python-face jgart via Guix-patches via
@ 2021-09-25 7:49 ` jgart via Guix-patches via
0 siblings, 0 replies; 5+ messages in thread
From: jgart via Guix-patches via @ 2021-09-25 7:49 UTC (permalink / raw)
To: 50799; +Cc: jgart
* gnu/packages/python-xyz.scm (python-glom): New variable.
---
gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9e3a1144f6..ed033df0ad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27007,6 +27007,52 @@ applications:
@item Themeable help display
@end itemize")
(license license:bsd-3)))
+
+(define-public python-glom
+ (package
+ (name "python-glom")
+ (version "20.11.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "glom" version))
+ (sha256
+ (base32 "04pba09vdr3qjvqvy14g60fscdsi35chbbyqpczdp76cpir101al"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (setenv "PYTHONPATH"
+ (string-append ".:" (getenv "PYTHONPATH")))
+ (setenv "PATH"
+ (string-append (assoc-ref outputs "out") "/bin"
+ ":" (getenv "PATH")))
+ (invoke "pytest" "-v" "glom/test")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-pyyaml" ,python-pyyaml)))
+ (propagated-inputs
+ `(("python-attrs" ,python-attrs)
+ ("python-boltons" ,python-boltons)
+ ("python-face" ,python-face)))
+ (home-page "https://github.com/mahmoud/glom")
+ (synopsis "Restructuring data, the Python way")
+ (description
+"Real applications have real data, and real data nests.
+Objects inside of objects inside of lists of objects.
+glom is a new and powerful way to handle real-world data, featuring:
+@itemize
+@item Path-based access for nested data structures
+@item Readable, meaningful error messages
+@item Declarative data transformation, using lightweight, Pythonic specifications
+@item Built-in data exploration and debugging features
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-box
(package
(name "python-box")
--
2.33.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#50799: [PATCH] gnu: Add python-glom.
2021-09-25 7:47 [bug#50799] [PATCH] gnu: Add python-glom jgart via Guix-patches via
2021-09-25 7:49 ` [bug#50799] [PATCH 1/2] gnu: Add python-face jgart via Guix-patches via
@ 2021-09-28 18:48 ` Arun Isaac
2021-09-28 23:29 ` [bug#50799] " jgart via Guix-patches via
1 sibling, 1 reply; 5+ messages in thread
From: Arun Isaac @ 2021-09-28 18:48 UTC (permalink / raw)
To: jgart; +Cc: 50799-done
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
Hi jgart,
I have pushed your patches to master after improving the indentation,
synopsis and description, and removing a few unnecessary parts from the
check phases.
Cheers! :-)
Arun
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#50799] [PATCH] gnu: Add python-glom.
2021-09-28 18:48 ` bug#50799: [PATCH] " Arun Isaac
@ 2021-09-28 23:29 ` jgart via Guix-patches via
0 siblings, 0 replies; 5+ messages in thread
From: jgart via Guix-patches via @ 2021-09-28 23:29 UTC (permalink / raw)
To: Arun Isaac; +Cc: 50799-done
On Wed, 29 Sep 2021 00:18:25 +0530 Arun Isaac <arunisaac@systemreboot.net> wrote:
>
> Hi jgart,
>
> I have pushed your patches to master after improving the indentation,
> synopsis and description, and removing a few unnecessary parts from the
> check phases.
Thanks Arun for that!
all best,
jgart
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-09-28 23:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-25 7:47 [bug#50799] [PATCH] gnu: Add python-glom jgart via Guix-patches via
2021-09-25 7:49 ` [bug#50799] [PATCH 1/2] gnu: Add python-face jgart via Guix-patches via
2021-09-25 7:49 ` [bug#50799] [PATCH 2/2] gnu: Add python-glom jgart via Guix-patches via
2021-09-28 18:48 ` bug#50799: [PATCH] " Arun Isaac
2021-09-28 23:29 ` [bug#50799] " jgart via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.