From 5b500864cbaf0cecd0737892bb0d1e74f9b7d955 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Wed, 25 Jan 2017 16:12:28 +0300 Subject: python.scm: Add new package python-auxlib --- gn/packages/python.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gn/packages/python.scm b/gn/packages/python.scm index 366511a..1d96851 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -627,3 +627,60 @@ numpy package, though some legacy software still uses the older versions.") it with different test data, and make it appear as multiple test cases") (license (license:non-copyleft "https://github.com/txels/ddt/blob/master/LICENSE.md")))) + +(define-public python-auxlib + (package + (name "python-auxlib") + (version "0.0.42") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/92/c7/304b651594ebc31fbe1aa201369ab7bd7e71" + "8928543d8cc1063d46319c30/auxlib-" + version + ".tar.gz")) + (sha256 + (base32 + "0pczs3a8ck3z6qhl2fldhm2dl2czxl4yj9kkhx47qlpwhy0726xj")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'build + 'set-source-date-epoch + (lambda* (set-source-date-epoch #:rest _) + ;; guix sets environment variable SOURCE_DATE_EPOCH=1 in + ;; guix/build/gnu-build-system.scm file + ;; The build for auxlib, however, calls the make_wheelfile_inner + ;; function which reads from SOURCE_DATE_EPOCH, giving a date in + ;; 1970, which is earlier than 1980, causing the error + ;; 'ZIP does not support timestamps before 1980' + ;; This phase fixes the issue, borrowing from phase + ;; ensure-no-mtimes-pre-1980 in guix/build/python-build-system.scm + (setenv "SOURCE_DATE_EPOCH" "315619200") + #t))))) + (inputs + `(("python-enum34" ,python-enum34) + ("python-tox" ,python-tox) + ("python-flake8" ,python-flake8) + ("python-radon" ,python-radon) + ("python-xenon" ,python-xenon) + ("python-wheel" ,python-wheel) + ("python-ddt" ,python-ddt) + ("python-testtools" ,python-testtools) + ("python-pycrypto" ,python-pycrypto) + ("python-pyyaml" ,python-pyyaml) + ("python-requests" ,python-requests))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (home-page "https://github.com/kalefranz/auxlib") + (synopsis + "Auxiliary library to the python standard library") + (description + "Auxlib is an auxiliary library to the python standard library. The aim is to + provide core generic features for app development in python. Auxlib fills in some + python stdlib gaps much like pytoolz has for functional programming, pyrsistent has for + data structures, or boltons has generally") + (license license:isc))) -- cgit v1.2.3