diff options
author | Vagrant Cascadian <vagrant@debian.org> | 2019-02-05 04:14:23 +0000 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2019-02-10 20:40:25 +0100 |
commit | f98232a39e955c9cb0cad151c939b8b94008c740 (patch) | |
tree | ec9b6e7da17cc4df96fb1e7f0d1ca961adb00cd8 | |
parent | f89d443be198f6f6fbb8d7576120301269f99192 (diff) | |
download | guix-f98232a39e955c9cb0cad151c939b8b94008c740.tar.gz |
gnu: Add python-construct.
* gnu/packages/python-xyz.scm (python-construct): New variable.
-rw-r--r-- | gnu/packages/python-xyz.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2a1575a77b..36e8ce0120 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -138,6 +138,7 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages tcl) #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages serialization) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -14819,3 +14820,33 @@ in doctests.") (description "Simple decorator to set attributes of target function or class in a @acronym{DRY, Don't Repeat Yourself} way.") (license license:expat))) + +(define-public python-construct + (package + (name "python-construct") + (version "2.9.45") + (source + (origin + (method url-fetch) + (uri (pypi-uri "construct" version)) + (sha256 + (base32 + "130iy05awzigm2xah2yvlmb08mac5bi4gzr5m3g7k1krs3ps0w92")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; No tests exist. + (propagated-inputs + `(("python-extras" ,python-extras) + ("python-arrow" ,python-arrow) + ("python-numpy" ,python-numpy) + ("python-ruamel.yaml" ,python-ruamel.yaml))) + (home-page "http://construct.readthedocs.io") + (synopsis "Declarative and symmetrical parser and builder for binary data") + (description + "This package provides both simple, atomic constructs (such as +integers of various sizes), as well as composite ones which allow you +form hierarchical and sequential structures of increasing complexity. +It features bit and byte granularity, easy debugging and testing, an +easy-to-extend subclass system, and lots of primitive constructs to +make your work easier.") + (license license:expat))) |