Archived
1
0
Fork 0

gnu: python-osmnx: Use pyproject-build-system.

* gnu/packages/geo.scm (python-osmnx)[build-system]: Use
  pyproject-build-system instead of python-build-system.
  [arguments]: Remove custom 'check phase. Instead define test-flags to
  disable network tests.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
Felix Gruber 2023-04-02 17:45:49 +00:00 committed by Guillaume Le Vaillant
parent 81b2e5975d
commit d8d89ffb01
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -44,6 +44,7 @@
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system go) #:use-module (guix build-system go)
#:use-module (guix build-system meson) #:use-module (guix build-system meson)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix build-system qt) #:use-module (guix build-system qt)
#:use-module (guix gexp) #:use-module (guix gexp)
@ -854,30 +855,24 @@ require a spatial database such as PostGIS.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1n8qjn184p5a2s3j6x6iyc1i7p3l3xnbqqxm6ajwgwv6j5fw1d5a")))) (base32 "1n8qjn184p5a2s3j6x6iyc1i7p3l3xnbqqxm6ajwgwv6j5fw1d5a"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check '(list "-k"
(lambda* (#:key tests? inputs outputs #:allow-other-keys) (string-append
(when tests? ;; The following tests require network access.
(add-installed-pythonpath inputs outputs) "not test_geocode_to_gdf"
; TODO: Disable network tests " and not test_stats"
(invoke "pytest" "tests" " and not test_osm_xml"
"-k" " and not test_elevation"
(string-append " and not test_routing"
;; The following tests require network access. " and not test_plots"
"not test_geocode_to_gdf" " and not test_find_nearest"
" and not test_stats" " and not test_api_endpoints"
" and not test_osm_xml" " and not test_graph_save_load"
" and not test_elevation" " and not test_graph_from_functions"
" and not test_routing" " and not test_geometries"))))
" and not test_plots"
" and not test_find_nearest"
" and not test_api_endpoints"
" and not test_graph_save_load"
" and not test_graph_from_functions"
" and not test_geometries"))))))))
(propagated-inputs (propagated-inputs
(list python-folium (list python-folium
python-geopandas python-geopandas