From 27664208e3c24faea8e2f66882d20ce83e80053a Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 23 Mar 2024 22:34:45 -0300 Subject: gnu: python-folium: Update to 0.16.0. * gnu/packages/python-xyz.scm (python-folium): Update to 0.16.0. [build-system]: Use pyproject-build-system. [arguments]<#:test-flags>: Skip failing tests. <#:phases>: Add phase 'pretend-version. [propagated-inputs]: Add python-xyzservices. [native-inputs]: Add python-geopandas, python-nbconvert, python-pandas, python-pillow, python-selenium, python-setuptools-scm. Change-Id: I93db72f62306c8db2a069733b49ac0933c8888ce --- gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 91bad3a582..131201f92f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29158,7 +29158,7 @@ time-or-computationally-expensive properties quick and easy and works in Python (define-public python-folium (package (name "python-folium") - (version "0.13.0") + (version "0.16.0") (source (origin ;; PyPI has a ".whl" file but not a proper source release. @@ -29169,12 +29169,46 @@ time-or-computationally-expensive properties quick and easy and works in Python (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "00adpdi1890zzzg7ffp04hmx59igdcdpyqa129vnmwqh54b5a006")))) - (build-system python-build-system) + (base32 "1dbndpqpd7c5pmc58yxz7m6bsll377fz7xqpzh58wm0hjn6ylc00")))) + (build-system pyproject-build-system) + (arguments + (list #:test-flags + ;; This file requires Selenium. + #~(list "--ignore" "tests/selenium/test_selenium.py" + "-k" (string-append + ;; The tests below also require Selenium. + "not test__repr_png_is_bytes" + " and not test_valid_png" + " and not test_valid_png_size" + " and not test_geojson" + " and not test_heat_map_with_weights" + ;; This performs an online request. + " and not test_json_request" + ;; AssertionError. + " and not test_minimap")) + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'pretend-version + ;; The version string is usually derived via setuptools-scm, + ;; but without the git metadata available, the version string + ;; is set to '0.0.0'. + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" + #$(package-version this-package))))))) (propagated-inputs - (list python-branca python-jinja2 python-numpy python-requests)) + (list python-branca + python-jinja2 + python-numpy + python-requests + python-xyzservices)) (native-inputs - (list python-pytest)) + (list python-geopandas + python-nbconvert + python-pandas + python-pillow + python-pytest + python-selenium + python-setuptools-scm)) (home-page "https://github.com/python-visualization/folium") (synopsis "Make beautiful maps with Leaflet.js & Python") (description "@code{folium} makes it easy to visualize data that’s been -- cgit v1.2.3