1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: python-fiona: Improve style.

* gnu/packages/geo.scm (python-fiona): Use G-expressions, fix
  indentation.
  [description]: Apply fill column.

Change-Id: Id9d9af7283e5e888018837f8a33fb9f84af614c9
This commit is contained in:
Sharlatan Hellseher
2025-07-20 09:28:10 +01:00
parent d30e35f2ca
commit 5527787956

View File

@@ -1100,66 +1100,66 @@ projections and coordinate transformations library.")
(name "python-fiona") (name "python-fiona")
(version "1.9.4.post1") (version "1.9.4.post1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "Fiona" version)) (uri (pypi-uri "Fiona" version))
(sha256 (sha256
(base32 (base32
"083120rqc4rrqzgmams0yjd8b1h4p5xm4n9fnxg064ymw3vx6yan")))) "083120rqc4rrqzgmams0yjd8b1h4p5xm4n9fnxg064ymw3vx6yan"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-before 'build 'set-configure-flags (add-before 'build 'set-configure-flags
(lambda _ (lambda _
(setenv "CFLAGS" "-Wno-error=incompatible-pointer-types"))) (setenv "CFLAGS" "-Wno-error=incompatible-pointer-types")))
(add-before 'check 'remove-local-fiona (add-before 'check 'remove-local-fiona
(lambda _ (lambda _
; This would otherwise interfere with finding the installed ;; This would otherwise interfere with finding the installed
; fiona when running tests. ;; fiona when running tests.
(delete-file-recursively "fiona"))) (delete-file-recursively "fiona")))
(replace 'check (replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys) (lambda* (#:key tests? inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(setenv "GDAL_ENABLE_DEPRECATED_DRIVER_GTM" "YES") (setenv "GDAL_ENABLE_DEPRECATED_DRIVER_GTM" "YES")
(when tests? (when tests?
(invoke "pytest" (invoke "pytest"
"-m" "not network and not wheel" "-m" "not network and not wheel"
;; FIXME: Find why the ;; FIXME: Find why the
;; test_no_append_driver_cannot_append[PCIDSK] ;; test_no_append_driver_cannot_append[PCIDSK]
;; test is failing. ;; test is failing.
"-k" "not test_no_append_driver_cannot_append"))))))) "-k" "not test_no_append_driver_cannot_append")))))))
(inputs (inputs
(list gdal)) (list gdal))
(propagated-inputs (propagated-inputs
(list python-attrs (list python-attrs
python-certifi python-certifi
python-click python-click
python-click-plugins python-click-plugins
python-cligj python-cligj
python-importlib-metadata python-importlib-metadata
python-six)) python-six))
(native-inputs (native-inputs
(list gdal ; for gdal-config (list gdal ; for gdal-config
python-boto3 python-boto3
python-cython python-cython
python-pytest python-pytest
python-pytest-cov python-pytest-cov
python-pytz python-pytz
python-setuptools python-setuptools
python-wheel)) python-wheel))
(home-page "https://github.com/Toblerity/Fiona") (home-page "https://github.com/Toblerity/Fiona")
(synopsis (synopsis
"Fiona reads and writes spatial data files") "Fiona reads and writes spatial data files")
(description (description
"Fiona is GDALs neat and nimble vector API for Python programmers. "Fiona is GDALs neat and nimble vector API for Python programmers. Fiona
Fiona is designed to be simple and dependable. It focuses on reading is designed to be simple and dependable. It focuses on reading and writing
and writing data in standard Python IO style and relies upon familiar data in standard Python IO style and relies upon familiar Python types and
Python types and protocols such as files, dictionaries, mappings, and protocols such as files, dictionaries, mappings, and iterators instead of
iterators instead of classes specific to OGR. Fiona can read and write classes specific to OGR. Fiona can read and write real-world data using
real-world data using multi-layered GIS formats and zipped virtual file multi-layered GIS formats and zipped virtual file systems and integrates
systems and integrates readily with other Python GIS packages such as readily with other Python GIS packages such as pyproj, Rtree, and Shapely.")
pyproj, Rtree, and Shapely.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-geopack (define-public python-geopack