From e7e7a1eb7c4484e2cb860e0edf7d8a5c1016ac54 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 14 Feb 2016 15:35:26 +0200 Subject: gnu: python-2: Update to 2.7.11. * gnu/packages/python.scm (python-2): Update to 2.7.11. --- gnu/packages/python.scm | 56 ++++++++++++++----------------------------------- 1 file changed, 16 insertions(+), 40 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5b988c10af..ebaa88dabf 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -88,7 +88,7 @@ (define-public python-2 (package (name "python") - (version "2.7.10") + (version "2.7.11") (source (origin (method url-fetch) @@ -96,7 +96,7 @@ version "/Python-" version ".tar.xz")) (sha256 (base32 - "1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw")) + "0iiz844riiznsyhhyy962710pz228gmhv8qi3yk4w4jhmx2lqawn")) (patches (map search-patch '("python-2.7-search-paths.patch" "python-2-deterministic-build-info.patch" @@ -106,46 +106,22 @@ (build-system gnu-build-system) (arguments `(#:tests? #f - ;; 268 tests OK. - ;; 103 tests failed: - ;; test_distutils test_shutil test_signal test_site test_slice - ;; test_smtplib test_smtpnet test_socket test_socketserver - ;; test_softspace test_sort test_spwd test_sqlite test_ssl - ;; test_startfile test_stat test_str test_strftime test_string - ;; test_stringprep test_strop test_strptime test_strtod test_struct - ;; test_structmembers test_structseq test_subprocess test_sunau - ;; test_sunaudiodev test_sundry test_symtable test_syntax test_sys - ;; test_sys_setprofile test_sys_settrace test_sysconfig test_tarfile - ;; test_tcl test_telnetlib test_tempfile test_textwrap test_thread - ;; test_threaded_import test_threadedtempfile test_threading - ;; test_threading_local test_threadsignals test_time test_timeit - ;; test_timeout test_tk test_tokenize test_tools test_trace - ;; test_traceback test_transformer test_ttk_guionly test_ttk_textonly - ;; test_tuple test_typechecks test_ucn test_unary - ;; test_undocumented_details test_unicode test_unicode_file - ;; test_unicodedata test_univnewlines test_univnewlines2k test_unpack - ;; test_urllib test_urllib2 test_urllib2_localnet test_urllib2net - ;; test_urllibnet test_urlparse test_userdict test_userlist - ;; test_userstring test_uu test_uuid test_wait3 test_wait4 - ;; test_warnings test_wave test_weakref test_weakset test_whichdb - ;; test_winreg test_winsound test_with test_wsgiref test_xdrlib - ;; test_xml_etree test_xml_etree_c test_xmllib test_xmlrpc - ;; test_xpickle test_xrange test_zipfile test_zipfile64 - ;; test_zipimport test_zipimport_support test_zlib - ;; 30 tests skipped: + ;; 356 tests OK. + ;; 6 tests failed: + ;; test_compileall test_distutils test_import test_shutil test_socket + ;; test_subprocess + ;; 39 tests skipped: ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk - ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_crypt - ;; test_curses test_dl test_gdb test_gl test_idle test_imageop - ;; test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos - ;; test_macostools test_msilib test_nis test_ossaudiodev - ;; test_scriptpackages - ;; 6 skips unexpected on linux2: - ;; test_bsddb test_bsddb3 test_crypt test_gdb test_idle test_ioctl - ;; One of the typical errors: - ;; test_unicode - ;; test test_unicode crashed -- : [Errno 2] No - ;; such file or directory + ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses + ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl + ;; test_kqueue test_linuxaudiodev test_macos test_macostools + ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet + ;; test_socketserver test_startfile test_sunaudiodev test_timeout + ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet + ;; test_winreg test_winsound test_zipfile64 + ;; 4 skips unexpected on linux2: + ;; test_bsddb test_bsddb3 test_gdb test_ioctl #:test-target "test" #:configure-flags (list "--enable-shared" ;allow embedding -- cgit v1.2.3 From 10a42aa2e285097e3bd14e5a6a62d8dd3fe7a92f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 14 Feb 2016 22:15:57 +0200 Subject: gnu: python-2: Enable tests. * gnu/packages/python.scm (python-2)[source]: Delete failing tests. [arguments]: Enable tests. --- gnu/packages/python.scm | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ebaa88dabf..987e1238ff 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -100,13 +100,26 @@ (patches (map search-patch '("python-2.7-search-paths.patch" "python-2-deterministic-build-info.patch" - "python-2.7-source-date-epoch.patch"))))) + "python-2.7-source-date-epoch.patch"))) + (modules '((guix build utils))) + ;; suboptimal to delete failing tests here, but if we delete them in the + ;; arguments then we need to make sure to strip out that phase when it + ;; gets inherited by python and python-minimal. + (snippet + '(begin + (for-each delete-file + '("Lib/test/test_compileall.py" + "Lib/test/test_distutils.py" + "Lib/test/test_import.py" + "Lib/test/test_shutil.py" + "Lib/test/test_socket.py" + "Lib/test/test_subprocess.py")) + #t)))) (outputs '("out" "tk")) ;tkinter; adds 50 MiB to the closure (build-system gnu-build-system) (arguments - `(#:tests? #f - ;; 356 tests OK. + `(;; 356 tests OK. ;; 6 tests failed: ;; test_compileall test_distutils test_import test_shutil test_socket ;; test_subprocess -- cgit v1.2.3 From 5c19dab94591db68c5361bc2521321fc587dc704 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sat, 27 Feb 2016 08:53:05 -0500 Subject: gnu: wrap-python3: Remove extraneous commas from Scheme lists. * gnu/packages/python.scm (wrap-python3): Remove commas from Scheme lists. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2e485a9aff..2308ece4e0 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -321,8 +321,8 @@ data types.") (lambda (old new) (symlink (string-append python old) (string-append bin "/" new))) - `("python3" ,"pydoc3" ,"idle3") - `("python" ,"pydoc" ,"idle")))))) + '("python3" "pydoc3" "idle3") + '("python" "pydoc" "idle")))))) (synopsis "Wrapper for the Python 3 commands") (description "This package provides wrappers for the commands of Python@tie{}3.x such -- cgit v1.2.3 From 478e75b53bdf754cdf911226d37e517387f73c09 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Thu, 5 May 2016 16:29:20 -0400 Subject: gnu: wrap-python3: Create more symlinks. Suggested by Hartmut Goebel . * gnu/packages/python.scm (wrap-python3): Add symlinks for 'pip' and 'python-config'. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ef06c89298..4824ff3eaa 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -324,8 +324,8 @@ data types.") (lambda (old new) (symlink (string-append python old) (string-append bin "/" new))) - '("python3" "pydoc3" "idle3") - '("python" "pydoc" "idle")))))) + '("python3" "pydoc3" "idle3" "pip3" "python3-config") + '("python" "pydoc" "idle" "pip" "python-config")))))) (synopsis "Wrapper for the Python 3 commands") (description "This package provides wrappers for the commands of Python@tie{}3.x such -- cgit v1.2.3 From 9ffe61b0ee38b0df88868706d5918e944a626cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 10 May 2016 09:03:55 +0200 Subject: gnu: python: Remove unnecessary installed tests. * gnu/packages/python.scm (python-2)[arguments]: Add 'remove-tests' phase. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4824ff3eaa..f09ff9694f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -201,6 +201,28 @@ (utime file circa-1980 circa-1980) #t)) #t))) + (add-after 'install 'remove-tests + ;; Remove 25 MiB of unneeded unit tests. Keep test_support.* + ;; because these files are used by some libraries out there. + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (match (scandir (string-append out "/lib") + (lambda (name) + (string-prefix? "python" name))) + ((pythonX.Y) + (let ((testdir (string-append out "/lib/" pythonX.Y + "/test"))) + (with-directory-excursion testdir + (for-each delete-file-recursively + (scandir testdir + (match-lambda + ((or "." "..") #f) + (file + (not + (string-prefix? "test_support." + file)))))) + (call-with-output-file "__init__.py" (const #t)) + #t))))))) (add-after 'install 'move-tk-inter (lambda* (#:key outputs #:allow-other-keys) ;; When Tkinter support is built move it to a separate output so -- cgit v1.2.3 From 216c283b0adf0357032019ff73b5d14cff109612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 10 May 2016 09:04:40 +0200 Subject: gnu: python: Make sure shared libraries are stripped. * gnu/packages/python.scm (python-2)[arguments]: Add 'make-libraries-writable' phase. --- gnu/packages/python.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f09ff9694f..adef5e6529 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -223,6 +223,15 @@ file)))))) (call-with-output-file "__init__.py" (const #t)) #t))))))) + (add-before 'strip 'make-libraries-writable + (lambda* (#:key outputs #:allow-other-keys) + ;; Make .so files writable so they can be stripped. + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (file) + (chmod file #o755)) + (find-files (string-append out "/lib") + "\\.so")) + #t))) (add-after 'install 'move-tk-inter (lambda* (#:key outputs #:allow-other-keys) ;; When Tkinter support is built move it to a separate output so -- cgit v1.2.3 From 01497dfe6c0a2ce69287d0fd0008747965a000df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Jun 2016 09:30:01 +0200 Subject: Merge branch 'master' into core-updates --- gnu/packages/python.scm | 406 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 390 insertions(+), 16 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7587678dc1..b92746a260 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2016 Lukas Gradl ;;; Copyright © 2016 Hartmut Goebel ;;; Copyright © 2016 Daniel Pimentel +;;; Copyright © 2016 Sou Bunnbu ;;; ;;; This file is part of GNU Guix. ;;; @@ -2182,13 +2183,17 @@ is used by the Requests library to verify HTTPS requests.") (define-public python-click (package (name "python-click") - (version "6.2") + (version "6.6") (source (origin (method url-fetch) - (uri (pypi-uri "click" version)) + (uri (string-append + "https://pypi.python.org/packages/" + "7a/00/c14926d8232b36b08218067bcd5853caefb4737cda3f0a47437151344792/" + "click-" version ".tar.gz")) (sha256 - (base32 "10kavbisnk9m93jl2wi34pw7ryr2qbxshh2cysxwxd7bymqgz87v")))) + (base32 + "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc")))) (build-system python-build-system) (native-inputs `(("python-setuptools" ,python-setuptools))) @@ -6942,13 +6947,16 @@ for atomic filesystem operations.") (define-public python-requests-toolbelt (package (name "python-requests-toolbelt") - (version "0.6.0") + (version "0.6.2") (source (origin (method url-fetch) - (uri (pypi-uri "requests-toolbelt" version)) + (uri (string-append + "https://pypi.python.org/packages/" + "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/" + "requests-toolbelt-" version ".tar.gz")) (sha256 (base32 - "07slish560haspn0hpwgy2izhk2snqq06s6acp8xzmhhz079qknc")))) + "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6")))) (build-system python-build-system) (propagated-inputs `(("python-requests" ,python-requests))) @@ -6961,13 +6969,16 @@ with python-requests.") (define-public python-click-threading (package (name "python-click-threading") - (version "0.1.2") + (version "0.2.0") (source (origin (method url-fetch) - (uri (pypi-uri "click-threading" version)) + (uri (string-append + "https://pypi.python.org/packages/" + "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/" + "click-threading-" version ".tar.gz")) (sha256 (base32 - "0jmrv4334lfxa2ss53c06dafdwqbk1pb3ihd26izn5igw1bm8145")))) + "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j")))) (build-system python-build-system) (propagated-inputs `(("python-click" ,python-click))) @@ -7117,13 +7128,16 @@ framework which enables you to test server connections locally.") (define-public python-wsgi-intercept (package (name "python-wsgi-intercept") - (version "1.1.2") + (version "1.2.2") (source (origin (method url-fetch) - (uri (pypi-uri "wsgi_intercept" version)) + (uri (string-append + "https://pypi.python.org/packages/" + "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/" + "wsgi_intercept-" version ".tar.gz")) (sha256 (base32 - "14ajy415ch5d0dnspg4b592p66wlgzah7ay218flp13517fp49zl")))) + "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d")))) (build-system python-build-system) (native-inputs `(("python-pytest" ,python-pytest) @@ -9103,10 +9117,7 @@ to provide a high-level synchronous API on top of the libev event loop.") (version "16.2.0") (source (origin (method url-fetch) - (uri (list (pypi-uri "Twisted" version ".tar.bz2") ; 404 - (string-append - "https://pypi.io/packages/source/T/Twisted/" - "Twisted-" version ".tar.bz2"))) + (uri (pypi-uri "Twisted" version ".tar.bz2")) (sha256 (base32 "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450")))) @@ -9300,3 +9311,366 @@ It supports both the original 1.0 specification, as well as the new (proposed) 2.0 spec, which includes batch submission, keyword arguments, etc.") (license asl2.0))) + +(define-public python-chai + (package + (name "python-chai") + (version "1.1.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "chai" version)) + (sha256 + (base32 + "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/agoragames/chai") + (synopsis "Mocking framework for Python") + (description + "Chai provides an api for mocking, stubbing and spying your python +objects, patterned after the Mocha library for Ruby.") + (license bsd-3))) + +(define-public python2-chai + (package-with-python2 python-chai)) + +(define-public python-arrow + (package + (name "python-arrow") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "arrow" version)) + (sha256 + (base32 + "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ("python-dateutil" ,python-dateutil-2) + ;; For testing + ("python-chai" ,python-chai) + ("python-simplejson" ,python-simplejson))) + (home-page "https://github.com/crsmithdev/arrow/") + (synopsis "Dates and times for Python") + (description + "Arrow is a Python library to creating, manipulating, formatting and +converting dates, times, and timestamps. It implements and updates the +datetime type.") + (license asl2.0))) + +(define-public python2-arrow + (package-with-python2 python-arrow)) + +(define-public python-inflection + (package + (name "python-inflection") + (version "0.3.1") + (source + (origin (method url-fetch) + (uri (pypi-uri "inflection" version)) + (sha256 + (base32 + "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "http://github.com/jpvanhal/inflection") + (synopsis "Python string transformation library") + (description + "Inflection is a string transformation library. It singularizes +and pluralizes English words, and transforms strings from CamelCase to +underscored string.") + (license license:expat))) + +(define-public python2-inflection + (package-with-python2 python-inflection)) + +(define-public python-pylev + (package + (name "python-pylev") + (version "1.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pylev" version)) + (sha256 + (base32 + "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "http://github.com/toastdriven/pylev") + (synopsis "Levenshtein distance implementation in Python") + (description "Pure Python Levenshtein implementation, based off the +Wikipedia code samples at +@url{http://en.wikipedia.org/wiki/Levenshtein_distance}.") + (license bsd-3))) + +(define-public python2-pylev + (package-with-python2 python-pylev)) + +(define-public python-cleo + (package + (name "python-cleo") + (version "0.4.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "cleo" version)) + (sha256 + (base32 + "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva")))) + (build-system python-build-system) + (native-inputs + `(("python-psutil" ,python-psutil) + ("python-pylev" ,python-pylev) + ("python-setuptools" ,python-setuptools) + ;; For testing + ("python-mock" ,python-mock) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/sdispater/cleo") + (synopsis "Command-line arguments library for Python") + (description + "Cleo allows you to create command-line commands with signature in +docstring and colored output.") + (license license:expat))) + +(define-public python2-cleo + (package-with-python2 python-cleo)) + +(define-public python-lazy-object-proxy + (package + (name "python-lazy-object-proxy") + (version "1.2.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "lazy-object-proxy" version)) + (sha256 + (base32 + "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/ionelmc/python-lazy-object-proxy") + (synopsis "Lazy object proxy for python") + (description + "Lazy object proxy is an object that wraps a callable but defers the call +until the object is actually required, and caches the result of said call.") + (license bsd-2))) + +(define-public python2-lazy-object-proxy + (package-with-python2 python-lazy-object-proxy)) + +(define-public python-dnspython + (package + (name "python-dnspython") + (version "1.14.0") + (source (origin + (method url-fetch) + (uri (string-append "http://www.dnspython.org/kits/" + version "/dnspython-" version ".tar.gz")) + (sha256 + (base32 + "1z472r63gdqsxhsxj3plr5vs478yf4303vrqxxpsccc940g441hl")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) ; XXX: requires internet access + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "http://www.dnspython.org") + (synopsis "DNS toolkit for Python") + (description + "dnspython is a DNS toolkit for Python. It supports almost all record +types. It can be used for queries, zone transfers, and dynamic updates. +It supports TSIG authenticated messages and EDNS0.") + (license license:expat))) + +(define-public python2-dnspython + (package-with-python2 python-dnspython)) + +(define-public python-email-validator + (package + (name "python-email-validator") + (version "1.0.1") + (source + (origin (method url-fetch) + (uri (pypi-uri "email_validator" version)) + (sha256 + (base32 + "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'build 'use-dnspython + (lambda _ + (substitute* "setup.py" + (("dnspython3") "dnspython")) + #t))))) + (native-inputs + `(("python-dnspython" ,python-dnspython) + ("python-idna" ,python-idna) + ("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/JoshData/python-email-validator") + (synopsis "Email address validation library for Python") + (description + "This library validates email address syntax and deliverability.") + (license cc0))) + +(define-public python2-email-validator + (package-with-python2 python-email-validator)) + +(define-public python-ukpostcodeparser + (package + (name "python-ukpostcodeparser") + (version "1.0.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "UkPostcodeParser" version)) + (sha256 + (base32 + "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/hamstah/ukpostcodeparser") + (synopsis "UK Postcode parser for Python") + (description + "This library provides the @code{parse_uk_postcode} function for +parsing UK postcodes.") + (license license:expat))) + +(define-public python2-ukpostcodeparser + (package-with-python2 python-ukpostcodeparser)) + +(define-public python-fake-factory + (package + (name "python-fake-factory") + (version "0.5.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "fake-factory" version)) + (sha256 + (base32 + "1chmarnrdzn4r017n8qlic0m0bbnhw04s3hkwribjvm3mqpb6pa0")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'disable-failing-test + ;; XXX: faker/tests/ne_np/__init__.py, line 40, in test_names + ;; first_name, last_name = name.split() + ;; ValueError: too many values to unpack (expected 2) + (lambda _ + (delete-file "faker/tests/ne_np/__init__.py") + #t))))) + (native-inputs + `(("python-dateutil" ,python-dateutil-2) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six) + ;; For testing + ("python-email-validator" ,python-email-validator) + ("python-mock" ,python-mock) + ("python-ukpostcodeparser" ,python-ukpostcodeparser))) + (home-page "http://github.com/joke2k/faker") + (synopsis "Python package that generates fake data") + (description + "Faker is a Python package that generates fake data such as names, +addresses, and phone numbers.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-fake-factory)))))) + +(define-public python2-fake-factory + (let ((base (package-with-python2 (strip-python2-variant + python-fake-factory)))) + (package + (inherit base) + (native-inputs + `(("python2-ipaddress" ,python2-ipaddress) + ,@(package-native-inputs base)))))) + +(define-public python-pyaml + (package + (name "python-pyaml") + (version "15.8.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "pyaml" version)) + (sha256 + (base32 + "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (propagated-inputs + `(("python-pyyaml" ,python-pyyaml))) + (home-page "https://github.com/mk-fg/pretty-yaml") + (synopsis "YAML pretty-print library for Python") + (description + "pyaml is a PyYAML based python module to produce pretty and readable +YAML-serialized data.") + (license (non-copyleft "http://www.wtfpl.net/txt/copying/")))) + +(define-public python2-pyaml + (package-with-python2 python-pyaml)) + +(define-public python-flexmock + (package + (name "python-flexmock") + (version "0.10.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "flexmock" version)) + (sha256 + (base32 + "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://flexmock.readthedocs.org") + (synopsis "Testing library for Python") + (description + "flexmock is a testing library for Python that makes it easy to create +mocks, stubs and fakes.") + (license bsd-3))) + +(define-public python2-flexmock + (package-with-python2 python-flexmock)) + +(define-public python-orator + (package + (name "python-orator") + (version "0.8.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "orator" version)) + (sha256 + (base32 + "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) ; no tests + (native-inputs + `(("python-arrow" ,python-arrow) + ("python-blinker" ,python-blinker) + ("python-cleo" ,python-cleo) + ("python-fake-factory" ,python-fake-factory) + ("python-inflection" ,python-inflection) + ("python-lazy-object-proxy" ,python-lazy-object-proxy) + ("python-pyaml" ,python-pyaml) + ("python-setuptools" ,python-setuptools) + ("python-simplejson" ,python-simplejson) + ("python-wrapt" ,python-wrapt))) + (home-page "https://orator-orm.com/") + (synopsis "ActiveRecord ORM for Python") + (description + "Orator provides a simple ActiveRecord-like Object Relational Mapping +implementation for Python.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-orator)))))) + +(define-public python2-orator + (let ((base (package-with-python2 (strip-python2-variant python-orator)))) + (package + (inherit base) + (native-inputs + `(("python2-ipaddress" ,python2-ipaddress) + ,@(package-native-inputs base)))))) -- cgit v1.2.3 From 187e9094f7fa79e52820b154bbac855f357553ce Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 1 Jul 2016 17:03:29 -0400 Subject: Revert "gnu: wrap-python3: Create more symlinks." This reverts commit 478e75b53bdf754cdf911226d37e517387f73c09. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b92746a260..8bba7ca256 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -370,8 +370,8 @@ data types.") (lambda (old new) (symlink (string-append python old) (string-append bin "/" new))) - '("python3" "pydoc3" "idle3" "pip3" "python3-config") - '("python" "pydoc" "idle" "pip" "python-config")))))) + '("python3" "pydoc3" "idle3") + '("python" "pydoc" "idle")))))) (synopsis "Wrapper for the Python 3 commands") (description "This package provides wrappers for the commands of Python@tie{}3.x such -- cgit v1.2.3 From d8fa9cf7f4173b1b30adc1a7b75f7dd46218c424 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 1 Jul 2016 17:25:10 -0400 Subject: gnu: Add python-imagesize. * gnu/packages/python.scm (python-imagesize, python2-imagesize): New variables. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8bba7ca256..c9c782de13 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9674,3 +9674,29 @@ implementation for Python.") (native-inputs `(("python2-ipaddress" ,python2-ipaddress) ,@(package-native-inputs base)))))) + +(define-public python-imagesize + (package + (name "python-imagesize") + (version "0.7.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "imagesize" version)) + (sha256 + (base32 + "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha")))) + (build-system python-build-system) + (synopsis "Calculate the size of an image") + (description "This Python module returns the size of an image. It supports +the PNG, JPEG, JPEG 2000, and GIF formats.") + (home-page "https://github.com/shibukawa/imagesize_py") + (license license:expat) + (properties `((python2-variant . ,(delay python2-imagesize)))))) + +(define-public python2-imagesize + (let ((base (package-with-python2 (strip-python2-variant python-imagesize)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.2.3 From afcb871954bcafff9aa5969a8a92777647ae2fef Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 1 Jul 2016 17:39:29 -0400 Subject: gnu: Add python-alabaster. * gnu/packages/python.scm (python-alabaster, python2-alabaster): New variables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c9c782de13..da6dde5d3a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9700,3 +9700,30 @@ the PNG, JPEG, JPEG 2000, and GIF formats.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-alabaster + (package + (name "python-alabaster") + (version "0.7.8") + (source (origin + (method url-fetch) + (uri (pypi-uri "alabaster" version)) + (sha256 + (base32 + "1zqz9hsvnmpjklmir6g7rxlv2fslrgsnwb91r9sgz4n1zja1pjx1")))) + (build-system python-build-system) + (synopsis "Default theme for the Sphinx documentation system") + (description "Alabaster is a responsive and configurable theme for the +Sphinx documentation system. It is compatible with Python 2 and 3, and it is +the default Sphinx theme.") + (home-page "https://github.com/bitprophet/alabaster") + (license bsd-3) + (properties `((python2-variant . ,(delay python2-alabaster)))))) + +(define-public python2-alabaster + (let ((base (package-with-python2 (strip-python2-variant python-alabaster)))) + (package + (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.2.3 From 936984b421eebdfcd5870599d5cad9dab2d3b297 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 1 Jul 2016 17:40:02 -0400 Subject: gnu: Add python-snowballstemmer. * gnu/packages/python.scm (python-snowballstemmer, python2-snowballstemmer): New variables. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index da6dde5d3a..4479dddb2d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9727,3 +9727,25 @@ the default Sphinx theme.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-snowballstemmer + (package + (name "python-snowballstemmer") + (version "1.2.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "snowballstemmer" version)) + (sha256 + (base32 + "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; no test suite + (synopsis "Snowball stemming library collection for Python") + (description "This package provides 16 stemmer algorithms generated from +Snowball algorithms.") + (home-page "https://github.com/shibukawa/snowball_py") + (license bsd-2))) + +(define-public python2-snowballstemmer + (package-with-python2 python-snowballstemmer)) -- cgit v1.2.3 From 5ebd95202c4578d29d13a35a2563c20609988f42 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 1 Jul 2016 17:40:47 -0400 Subject: gnu: python-sphinx: Update to 1.4.4. * gnu/packages/python.scm (python-sphinx, python2-sphinx): Update to 1.4.4. [source]: Use pypi-uri. [inputs]: Add python-alabaster, python-babel, python-imagesize, python-six. [propagated-inputs]: New field. --- gnu/packages/python.scm | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4479dddb2d..e9020c1f7e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2677,22 +2677,33 @@ reStructuredText.") (define-public python-sphinx (package (name "python-sphinx") - (version "1.2.3") + (version "1.4.4") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" - version ".tar.gz")) + (uri (pypi-uri "Sphinx" version)) (sha256 (base32 - "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) + "185zklh44fhrwp1dg6251g3w6zmssh5jzvbz8pvmkg9l6wvxdzry")))) (build-system python-build-system) (inputs - `(("python-setuptools" ,python-setuptools) - ("python-jinja2" ,python-jinja2) + `( + ("python-alabaster" ,python-alabaster) + ("python-babel" ,python-babel) ("python-docutils" ,python-docutils) - ("python-pygments" ,python-pygments))) + ("python-imagesize" ,python-imagesize) + ("python-jinja2" ,python-jinja2) + ("python-pygments" ,python-pygments) + ("python-pytz" ,python-pytz) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six))) + + ;; Several packages that use Sphinx want to use these propagated + ;; dependencies when using Sphinx. Rather than add them to all the Sphinx + ;; users, we propagate them from Sphinx. + (propagated-inputs + `(("python-pytz" ,python-pytz) + ("python-snowballstemmer" ,python-snowballstemmer))) (home-page "http://sphinx-doc.org/") (synopsis "Python documentation generator") (description "Sphinx is a tool that makes it easy to create documentation -- cgit v1.2.3 From 9852994842785f0e62a6b9046f282beed5271e19 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 1 Jul 2016 19:19:03 -0400 Subject: gnu: python-sphinx-rtd-theme: Update to 0.1.9. * gnu/packages/python.scm (python-sphinx-rtd-theme, python2-sphinx-rtd-theme): Update to 0.1.9. --- gnu/packages/python.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e9020c1f7e..1deaab79f8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2717,16 +2717,14 @@ sources.") (define-public python-sphinx-rtd-theme (package (name "python-sphinx-rtd-theme") - (version "0.1.6") + (version "0.1.9") (source (origin (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/s/" - "sphinx_rtd_theme/sphinx_rtd_theme-" - version ".tar.gz")) + (uri (pypi-uri "sphinx_rtd_theme" version)) (sha256 (base32 - "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) + "18d0r63w7jpdrk4q5qy26n08vdlmnj9sar93akwjphyambw4cf17")))) (build-system python-build-system) (arguments `(;; With standard flags, the install phase attempts to create a zip'd -- cgit v1.2.3 From bfd77809ecdb96606f268e13f6b5701f760a6b5c Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 12 Jul 2016 18:18:26 -0400 Subject: Revert "gnu: python-sphinx-rtd-theme: Update to 0.1.9." This reverts commit e1257225e7bb211e3dd8d9373fb5a81fe83b6baf. --- gnu/packages/python.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 1deaab79f8..e9020c1f7e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2717,14 +2717,16 @@ sources.") (define-public python-sphinx-rtd-theme (package (name "python-sphinx-rtd-theme") - (version "0.1.9") + (version "0.1.6") (source (origin (method url-fetch) - (uri (pypi-uri "sphinx_rtd_theme" version)) + (uri (string-append "https://pypi.python.org/packages/source/s/" + "sphinx_rtd_theme/sphinx_rtd_theme-" + version ".tar.gz")) (sha256 (base32 - "18d0r63w7jpdrk4q5qy26n08vdlmnj9sar93akwjphyambw4cf17")))) + "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g")))) (build-system python-build-system) (arguments `(;; With standard flags, the install phase attempts to create a zip'd -- cgit v1.2.3 From 1a27944905b0fb843a6460e984238c5a204ed1e3 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 12 Jul 2016 18:18:32 -0400 Subject: Revert "gnu: python-sphinx: Update to 1.4.4." This reverts commit efb386ca5c07c5a4571de8561fd5dcd2a4d9cec7. --- gnu/packages/python.scm | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e9020c1f7e..4479dddb2d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2677,33 +2677,22 @@ reStructuredText.") (define-public python-sphinx (package (name "python-sphinx") - (version "1.4.4") + (version "1.2.3") (source (origin (method url-fetch) - (uri (pypi-uri "Sphinx" version)) + (uri (string-append + "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-" + version ".tar.gz")) (sha256 (base32 - "185zklh44fhrwp1dg6251g3w6zmssh5jzvbz8pvmkg9l6wvxdzry")))) + "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl")))) (build-system python-build-system) (inputs - `( - ("python-alabaster" ,python-alabaster) - ("python-babel" ,python-babel) - ("python-docutils" ,python-docutils) - ("python-imagesize" ,python-imagesize) + `(("python-setuptools" ,python-setuptools) ("python-jinja2" ,python-jinja2) - ("python-pygments" ,python-pygments) - ("python-pytz" ,python-pytz) - ("python-setuptools" ,python-setuptools) - ("python-six" ,python-six))) - - ;; Several packages that use Sphinx want to use these propagated - ;; dependencies when using Sphinx. Rather than add them to all the Sphinx - ;; users, we propagate them from Sphinx. - (propagated-inputs - `(("python-pytz" ,python-pytz) - ("python-snowballstemmer" ,python-snowballstemmer))) + ("python-docutils" ,python-docutils) + ("python-pygments" ,python-pygments))) (home-page "http://sphinx-doc.org/") (synopsis "Python documentation generator") (description "Sphinx is a tool that makes it easy to create documentation -- cgit v1.2.3 From ce09c02c4c90eb37854ff6a960dde7d6bd5a8c70 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 12 Jul 2016 18:18:33 -0400 Subject: Revert "gnu: Add python-snowballstemmer." This reverts commit b3283dbaf395e024b6d88e63dbb0ccff42209f28. --- gnu/packages/python.scm | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4479dddb2d..da6dde5d3a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9727,25 +9727,3 @@ the default Sphinx theme.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) - -(define-public python-snowballstemmer - (package - (name "python-snowballstemmer") - (version "1.2.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "snowballstemmer" version)) - (sha256 - (base32 - "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi")))) - (build-system python-build-system) - (arguments - `(#:tests? #f)) ; no test suite - (synopsis "Snowball stemming library collection for Python") - (description "This package provides 16 stemmer algorithms generated from -Snowball algorithms.") - (home-page "https://github.com/shibukawa/snowball_py") - (license bsd-2))) - -(define-public python2-snowballstemmer - (package-with-python2 python-snowballstemmer)) -- cgit v1.2.3 From ced40bd7b591da11ff3818aaad53f97cef2d0add Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 12 Jul 2016 18:18:35 -0400 Subject: Revert "gnu: Add python-alabaster." This reverts commit 15c36240f0b9ab3e8dc0b57702bb6a5174e4ad58. --- gnu/packages/python.scm | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index da6dde5d3a..c9c782de13 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9700,30 +9700,3 @@ the PNG, JPEG, JPEG 2000, and GIF formats.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) - -(define-public python-alabaster - (package - (name "python-alabaster") - (version "0.7.8") - (source (origin - (method url-fetch) - (uri (pypi-uri "alabaster" version)) - (sha256 - (base32 - "1zqz9hsvnmpjklmir6g7rxlv2fslrgsnwb91r9sgz4n1zja1pjx1")))) - (build-system python-build-system) - (synopsis "Default theme for the Sphinx documentation system") - (description "Alabaster is a responsive and configurable theme for the -Sphinx documentation system. It is compatible with Python 2 and 3, and it is -the default Sphinx theme.") - (home-page "https://github.com/bitprophet/alabaster") - (license bsd-3) - (properties `((python2-variant . ,(delay python2-alabaster)))))) - -(define-public python2-alabaster - (let ((base (package-with-python2 (strip-python2-variant python-alabaster)))) - (package - (inherit base) - (native-inputs - `(("python2-setuptools" ,python2-setuptools) - ,@(package-native-inputs base)))))) -- cgit v1.2.3 From 91f9f33a195b20a7b0501da201cec45ff7e9c558 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 12 Jul 2016 18:19:29 -0400 Subject: Revert "gnu: Add python-imagesize." This reverts commit d8fa9cf7f4173b1b30adc1a7b75f7dd46218c424. --- gnu/packages/python.scm | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c9c782de13..8bba7ca256 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9674,29 +9674,3 @@ implementation for Python.") (native-inputs `(("python2-ipaddress" ,python2-ipaddress) ,@(package-native-inputs base)))))) - -(define-public python-imagesize - (package - (name "python-imagesize") - (version "0.7.1") - (source (origin - (method url-fetch) - (uri (pypi-uri "imagesize" version)) - (sha256 - (base32 - "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha")))) - (build-system python-build-system) - (synopsis "Calculate the size of an image") - (description "This Python module returns the size of an image. It supports -the PNG, JPEG, JPEG 2000, and GIF formats.") - (home-page "https://github.com/shibukawa/imagesize_py") - (license license:expat) - (properties `((python2-variant . ,(delay python2-imagesize)))))) - -(define-public python2-imagesize - (let ((base (package-with-python2 (strip-python2-variant python-imagesize)))) - (package - (inherit base) - (native-inputs - `(("python2-setuptools" ,python2-setuptools) - ,@(package-native-inputs base)))))) -- cgit v1.2.3 From 8b732bf6d93ad2cb529c3c5f886efe2625c5fb72 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Wed, 27 Jul 2016 16:05:36 +0200 Subject: gnu: python-2.7: Disable test failing on mips64el-linux. * gnu/packages/python.scm (python-2.7)[source]: In a snippet, remove an additional test that fails on mips64el-linux. --- gnu/packages/python.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a5260f2bff..14f29f0784 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -125,7 +125,9 @@ "Lib/test/test_import.py" "Lib/test/test_shutil.py" "Lib/test/test_socket.py" - "Lib/test/test_subprocess.py")) + "Lib/test/test_subprocess.py" + ;; The following test apparently fails only on mips64el. + "Lib/test/test_ctypes.py")) #t)))) (outputs '("out" "tk")) ;tkinter; adds 50 MiB to the closure -- cgit v1.2.3 From 1bb163b0dd07c8f2cfd7e91f1e428075cd3d5ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 28 Jul 2016 00:58:40 +0200 Subject: gnu: python@2.7: Delete faulty test on mips64el only. This amends 8b732bf6d93ad2cb529c3c5f886efe2625c5fb72 and avoids a rebuild. * gnu/packages/python.scm (python-2.7)[arguments] : When (%current-system) starts with "mips64el", delete Lib/test/test_ctypes.py. --- gnu/packages/python.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 14f29f0784..2b42a2c343 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -125,9 +125,7 @@ "Lib/test/test_import.py" "Lib/test/test_shutil.py" "Lib/test/test_socket.py" - "Lib/test/test_subprocess.py" - ;; The following test apparently fails only on mips64el. - "Lib/test/test_ctypes.py")) + "Lib/test/test_subprocess.py")) #t)))) (outputs '("out" "tk")) ;tkinter; adds 50 MiB to the closure @@ -198,6 +196,13 @@ (lambda _ ;; 'Lib/test/test_site.py' needs a valid $HOME (setenv "HOME" (getcwd)) + ,@(if (string-prefix? "mips64el" (%current-system)) + + ;; XXX: The following test fails on mips64el. + '((false-if-exception + (delete-file "Lib/test/test_ctypes.py"))) + + '()) #t)) (add-after 'unpack 'set-source-file-times-to-1980 -- cgit v1.2.3 From bb484529cc146c99ad4ee7c27674cff9a80572fe Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sun, 31 Jul 2016 11:18:53 +0200 Subject: gnu: python-alembic: Update to 0.8.7. * gnu/packages/python.scm (python-alembic): Update to 0.8.7. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3753f9a1bf..5ba92b2aa3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3672,14 +3672,14 @@ simple and Pythonic domain language.") (define-public python-alembic (package (name "python-alembic") - (version "0.8.4") + (version "0.8.7") (source (origin (method url-fetch) (uri (pypi-uri "alembic" version)) (sha256 (base32 - "0jk23a852l3ybv7gfz81xzslyrnqnpjds5x15zd234y9rh9gq1w5")))) + "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z")))) (build-system python-build-system) (native-inputs `(("python-mock" ,python-mock) -- cgit v1.2.3