aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2018-09-05 15:59:56 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-09-10 16:50:26 +0200
commit930ba31d20f204ca0cee9ea6fedf1aab24195d49 (patch)
tree31084072e49cf6b3c19e059ff79ac55c9a2deb63
parent3d352cb9cf2d6ddd63e345a1eb2df7e3624d66a2 (diff)
downloadguix-930ba31d20f204ca0cee9ea6fedf1aab24195d49.tar
guix-930ba31d20f204ca0cee9ea6fedf1aab24195d49.tar.gz
gnu: Add python-cloudpickle.
* gnu/packages/python.scm (python-cloudpickle): New variable.
-rw-r--r--gnu/packages/python.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b87c4787db..c029fd1410 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14137,3 +14137,37 @@ that is accessible to other projects developed in Cython.")
"This package provides a sorted collections library, written in
pure-Python.")
(license license:asl2.0)))
+
+(define-public python-cloudpickle
+ (package
+ (name "python-cloudpickle")
+ (version "0.5.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cloudpickle" version))
+ (sha256
+ (base32
+ "0gdg5n025v4wqmdg65rm0n6fvp6731ip30ji0rmn2kqsyr4bb93f"))))
+ (build-system python-build-system)
+ ;; FIXME: there are 5 errors in 122 tests:
+ ;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.CloudPickleTest)
+ ;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.CloudPickleTest)
+ ;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.Protocol2CloudPickleTest)
+ ;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.Protocol2CloudPickleTest)
+ ;; ERROR: test_temp_file (tests.cloudpickle_file_test.CloudPickleFileTests)
+ ;; TypeError: cannot serialize '_io.BufferedRandom' object
+ (arguments '(#:tests? #f))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-mock" ,python-mock)
+ ("python-tornado" ,python-tornado)))
+ (home-page "https://github.com/cloudpipe/cloudpickle")
+ (synopsis "Extended pickling support for Python objects")
+ (description
+ "Cloudpickle makes it possible to serialize Python constructs not
+supported by the default pickle module from the Python standard library. It
+is especially useful for cluster computing where Python expressions are
+shipped over the network to execute on remote hosts, possibly close to the
+data.")
+ (license license:bsd-3)))