gnu: python-cloudpickle: Update to 1.3.0.
* gnu/packages/python-xyz.scm (python-cloudpickle): Update to 1.3.0. [arguments]: Remove #:tests?. Add #:phases. [native-inputs]: Add PYTHON-PSUTIL. Remove PYTHON-MOCK. [properties]: New field. (python2-cloudpickle)[native-inputs]: New field. Preserve PYTHON2-MOCK. [propagated-inputs]: Add PYTHON2-FUTURES.master
parent
ed383b2be6
commit
0358841b86
|
@ -17113,26 +17113,35 @@ pure-Python.")
|
||||||
(define-public python-cloudpickle
|
(define-public python-cloudpickle
|
||||||
(package
|
(package
|
||||||
(name "python-cloudpickle")
|
(name "python-cloudpickle")
|
||||||
(version "0.6.1")
|
(version "1.3.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "cloudpickle" version))
|
(uri (pypi-uri "cloudpickle" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1wdw89mlm7fqa3fm3ymskx05jrys66n8m1z1a8s0mss0799ahsgi"))))
|
"0lx7gy9clp427qwcm7b23zdsldpr03gy3vxxhyi8fpbhwz859brq"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
;; FIXME: there are 5 errors in 122 tests:
|
(arguments
|
||||||
;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.CloudPickleTest)
|
'(#:phases (modify-phases %standard-phases
|
||||||
;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.CloudPickleTest)
|
(add-before 'check 'do-not-override-PYTHONPATH
|
||||||
;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.Protocol2CloudPickleTest)
|
(lambda _
|
||||||
;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.Protocol2CloudPickleTest)
|
;; Append to PYTHONPATH instead of overriding it so
|
||||||
;; ERROR: test_temp_file (tests.cloudpickle_file_test.CloudPickleFileTests)
|
;; that dependencies from Guix can be found.
|
||||||
;; TypeError: cannot serialize '_io.BufferedRandom' object
|
(substitute* "tests/testutils.py"
|
||||||
(arguments '(#:tests? #f))
|
(("env\\['PYTHONPATH'\\] = pythonpath")
|
||||||
|
"env['PYTHONPATH'] += os.pathsep + pythonpath"))
|
||||||
|
#t))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(if tests?
|
||||||
|
(invoke "pytest" "-s" "-vv")
|
||||||
|
(format #t "test suite not run~%"))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)
|
`(;; For tests.
|
||||||
("python-mock" ,python-mock)
|
("python-psutil" ,python-psutil)
|
||||||
|
("python-pytest" ,python-pytest)
|
||||||
("python-tornado" ,python-tornado)))
|
("python-tornado" ,python-tornado)))
|
||||||
(home-page "https://github.com/cloudpipe/cloudpickle")
|
(home-page "https://github.com/cloudpipe/cloudpickle")
|
||||||
(synopsis "Extended pickling support for Python objects")
|
(synopsis "Extended pickling support for Python objects")
|
||||||
|
@ -17142,10 +17151,19 @@ supported by the default pickle module from the Python standard library. It
|
||||||
is especially useful for cluster computing where Python expressions are
|
is especially useful for cluster computing where Python expressions are
|
||||||
shipped over the network to execute on remote hosts, possibly close to the
|
shipped over the network to execute on remote hosts, possibly close to the
|
||||||
data.")
|
data.")
|
||||||
|
(properties `((python2-variant . ,(delay python2-cloudpickle))))
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python2-cloudpickle
|
(define-public python2-cloudpickle
|
||||||
(package-with-python2 python-cloudpickle))
|
(let ((base (package-with-python2 (strip-python2-variant python-cloudpickle))))
|
||||||
|
(package
|
||||||
|
(inherit base)
|
||||||
|
(native-inputs
|
||||||
|
`(("python-mock" ,python2-mock)
|
||||||
|
,@(package-native-inputs base)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-futures" ,python2-futures)
|
||||||
|
,@(package-propagated-inputs base))))))
|
||||||
|
|
||||||
(define-public python-locket
|
(define-public python-locket
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue