From fb1e1089e5f5d094d30b25749cb47cfb39c9c45f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Tue, 5 Feb 2019 04:14:23 +0000 Subject: [PATCH 2/3] gnu: Add python-construct. * gnu/packages/python-xyz.scm (python-construct): New variable. --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6a5e54d382..d72aa60837 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -137,6 +137,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) @@ -14811,3 +14812,36 @@ 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 + `(#:phases + (modify-phases %standard-phases + ;; No tests defined. + (delete 'check)))) + (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 + "Construct 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. Construct 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))) -- 2.20.1