summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2024-03-23 22:29:25 -0300
committerVinicius Monego <monego@posteo.net>2024-05-11 16:13:45 -0300
commita0339072b6a3e2874875190d1112405ebdb06445 (patch)
tree57f0d4ccd449becec65bb4f857b5e40598b15e69
parent6f595eca59c00412b80657495d30ed110d9166c0 (diff)
downloadguix-patches-a0339072b6a3e2874875190d1112405ebdb06445.tar
guix-patches-a0339072b6a3e2874875190d1112405ebdb06445.tar.gz
gnu: python-branca: Update to 0.7.2.
* gnu/packages/python-web.scm (python-branca): Update to 0.7.2. [source]: Fetch from GitHub. [build-system]: Use pyproject-build-system. [arguments]<#:test-flags>: Ignore a file and skip one test. <#:phases>: Add phase 'pretend-version. [propagated-inputs]: Remove python-six. [native-inputs]: Add python-numpy, python-setuptools-scm. [description]: Improve it. Change-Id: I0263797b69fc437b2a268b5d03c211d76e2963c3
-rw-r--r--gnu/packages/python-web.scm37
1 files changed, 26 insertions, 11 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index ee19c8bdc4..c00e38a120 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5823,22 +5823,37 @@ library to create slugs from unicode strings while keeping it DRY.")
(define-public python-branca
(package
(name "python-branca")
- (version "0.3.1")
+ (version "0.7.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "branca" version))
+ (method git-fetch) ; no tests in PyPI
+ (uri (git-reference
+ (url "https://github.com/python-visualization/branca")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-jinja2 python-six))
- (native-inputs
- (list python-pytest))
+ (base32 "1vs94nqa7r6iwm8mj3m29hg090gmgz4ywnayxh8qiz9ij8jv96wa"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; This file requires Selenium.
+ (list #:test-flags #~(list "--ignore" "tests/test_iframe.py"
+ ;; This test passes but is very slow.
+ "-k" "not test_color_brewer_extendability")
+ #: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-jinja2))
+ (native-inputs (list python-numpy python-pytest python-setuptools-scm))
(home-page "https://github.com/python-visualization/branca")
(synopsis "Generate complex HTML+JS pages with Python")
- (description "Generate complex HTML+JS pages with Python")
+ (description "This library is a spinoff from @code{folium} that would host
+the non-map-specific features. It can be used to generate HTML + JS.")
(license license:expat)))
(define-public python-tinycss