rekado pushed a commit to branch python-team in repository guix. commit 1ec29370f03d0a4596fab3794dcd2706e4a14651 Author: Ricardo Wurmus <rek...@elephly.net> AuthorDate: Sat Jan 11 09:29:06 2025 +0100
gnu: datasette: Update to 1.0a16. * gnu/packages/databases.scm (datasette): Update to 1.0a16. [arguments]: Enable almost all tests; remove phase 'relax-requirements. [native-inputs]: Add nss-certs-for-test. Change-Id: I0b23df8e3d2fadb007f1da21ee9a727228bde43c --- gnu/packages/databases.scm | 44 +++++++++++--------------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 03349a1680..228c129cb8 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -28,7 +28,7 @@ ;;; Copyright © 2017, 2018 Ben Woodcroft <donttrust...@gmail.com> ;;; Copyright © 2017 Rutger Helling <rhell...@mykolab.com> ;;; Copyright © 2017, 2018, 2019 Pierre Langlois <pierre.langl...@gmx.com> -;;; Copyright © 2015, 2017, 2018, 2019, 2021, 2022, 2023, 2024 Ricardo Wurmus <rek...@elephly.net> +;;; Copyright © 2015, 2017, 2018, 2019, 2021-2025 Ricardo Wurmus <rek...@elephly.net> ;;; Copyright © 2017 Kristofer Buffington <kristoferbuffing...@gmail.com> ;;; Copyright © 2018 Amirouche Boubekki <amirou...@hypermove.net> ;;; Copyright © 2018 Joshua Sierles, Nextjournal <jos...@nextjournal.com> @@ -89,6 +89,7 @@ #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) + #:use-module (gnu packages certs) #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) @@ -5899,7 +5900,7 @@ mechanism of @code{dogpile}.") (define-public datasette (package (name "datasette") - (version "1.0a7") + (version "1.0a16") (source (origin (method git-fetch) ;for tests (uri (git-reference @@ -5908,41 +5909,17 @@ mechanism of @code{dogpile}.") (file-name (git-file-name name version)) (sha256 (base32 - "1wwdx2xqkxygbww1nzpr6h702ims6zcxpjskh8fldn1kby591qgg")))) + "10c754idn9ka5hhai1qwjwlxw4dajdlrh162k71i5gwn4cgq6wr5")))) (build-system pyproject-build-system) (arguments (list #:test-flags - ;; There are multiple unexplained test failures (see: - ;; https://github.com/simonw/datasette/issues/2048). + ;; See https://github.com/simonw/datasette/issues/2048 #~(list "-k" (string-append - "not (test_database_page_for_database_with_dot_in_name" - " or test_row_strange_table_name" - " or test_database_with_space_in_name" - " or test_tilde_encoded_database_names" - " or test_weird_database_names" - " or test_css_classes_on_body" - " or test_templates_considered" - " or test_row_html_compound_primary_key" - " or test_edit_sql_link_on_canned_queries" - " or test_alternate_url_json" - " or test_table_with_slashes_in_name" - " or test_searchable" - " or test_custom_query_with_unicode_characters" - " or test_searchmode)") - "-n" (number->string (parallel-job-count)) - "-m" "not serial") ;cannot run in parallel - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - ;; The package needlessly specifies exact versions - ;; of dependencies, when it works fine with others. - (substitute* "setup.py" - (("(black)==[0-9\\.]+" _ package) - package) - (("click-default-group-wheel") - "click-default-group"))))))) + ;; These contain two unexpected extra items. + "not test_searchable" + " and not test_searchmode") + "-n" (number->string (parallel-job-count))))) (propagated-inputs (list python-aiofiles python-asgi-csrf @@ -5962,7 +5939,8 @@ mechanism of @code{dogpile}.") python-sqlite-utils python-uvicorn)) (native-inputs - (list python-beautifulsoup4 + (list nss-certs-for-test + python-beautifulsoup4 python-black python-cogapp python-pip