gnu: python-joblib: Update to 0.13.0.
* gnu/packages/python.scm (python-joblib): Update to 0.13.0. [source](snippet): Remove. [arguments]: Remove 'disable-failing-tests' phase. Add custom check phase. [native-inputs]: Remove PYTHON-NOSE, PYTHON-SPHINX, PYTHON-DOCUTILS and PYTHON-NUMPYDOC. Add PYTHON-PYTEST.master
parent
89d88b8530
commit
ff43d95807
|
@ -2401,47 +2401,21 @@ logic-free templating system Mustache.")
|
||||||
(define-public python-joblib
|
(define-public python-joblib
|
||||||
(package
|
(package
|
||||||
(name "python-joblib")
|
(name "python-joblib")
|
||||||
(version "0.10.3")
|
(version "0.13.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "joblib" version))
|
(uri (pypi-uri "joblib" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9"))
|
"0612nazad8dxmn3xghfrmjax6456l4xy6hn9cngs7vydi14ds7v5"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; Remove pre-compiled .pyc files from source.
|
|
||||||
(for-each delete-file-recursively
|
|
||||||
(find-files "." "__pycache__" #:directories? #t))
|
|
||||||
(for-each delete-file (find-files "." "\\.pyc$"))
|
|
||||||
#t))))
|
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'check 'disable-failing-tests
|
(replace 'check
|
||||||
(lambda _
|
(lambda _ (invoke "pytest" "-v" "joblib"))))))
|
||||||
;; This numpydoc tests fails for unknown reasons
|
|
||||||
(delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py")
|
|
||||||
;; This numpydoc test depends on matplotlib, which is not a
|
|
||||||
;; required input.
|
|
||||||
(delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py")
|
|
||||||
;; These tests fail to execute sys.executable
|
|
||||||
(substitute* "joblib/test/test_parallel.py"
|
|
||||||
(("import nose" line)
|
|
||||||
(string-append "from nose.plugins.skip import SkipTest\n" line))
|
|
||||||
(("def test_nested_parallel_warnings" line)
|
|
||||||
(string-append "@SkipTest\n" line))
|
|
||||||
(("def test_parallel_with_interactively_defined_functions" line)
|
|
||||||
(string-append "@SkipTest\n" line)))
|
|
||||||
#t)))))
|
|
||||||
;; Provide nose to enable tests command
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)
|
`(("python-pytest" ,python-pytest)))
|
||||||
("python-sphinx" ,python-sphinx)
|
|
||||||
("python-docutils" ,python-docutils)
|
|
||||||
("python-numpydoc" ,python-numpydoc)))
|
|
||||||
(home-page "http://pythonhosted.org/joblib/")
|
(home-page "http://pythonhosted.org/joblib/")
|
||||||
(synopsis "Using Python functions as pipeline jobs")
|
(synopsis "Using Python functions as pipeline jobs")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue