From: Felix Gruber <felgru@posteo.net>
To: 62622@debbugs.gnu.org
Cc: Felix Gruber <felgru@posteo.net>
Subject: [bug#62622] [PATCH 6/8] gnu: python-osmnx: Use pyproject-build-system.
Date: Sun, 2 Apr 2023 17:45:49 +0000 [thread overview]
Message-ID: <20230402174551.159212-6-felgru@posteo.net> (raw)
In-Reply-To: <20230402174241.158923-1-felgru@posteo.net>
* 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.
---
gnu/packages/geo.scm | 41 ++++++++++++++++++-----------------------
1 file changed, 18 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index e046797a3f..76a42c4140 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -44,6 +44,7 @@ (define-module (gnu packages geo)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#:use-module (guix build-system meson)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix build-system qt)
#:use-module (guix gexp)
@@ -854,30 +855,24 @@ (define-public python-osmnx
(file-name (git-file-name name version))
(sha256
(base32 "1n8qjn184p5a2s3j6x6iyc1i7p3l3xnbqqxm6ajwgwv6j5fw1d5a"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- ; TODO: Disable network tests
- (invoke "pytest" "tests"
- "-k"
- (string-append
- ;; The following tests require network access.
- "not test_geocode_to_gdf"
- " and not test_stats"
- " and not test_osm_xml"
- " and not test_elevation"
- " and not test_routing"
- " 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"))))))))
+ (list
+ #:test-flags
+ '(list "-k"
+ (string-append
+ ;; The following tests require network access.
+ "not test_geocode_to_gdf"
+ " and not test_stats"
+ " and not test_osm_xml"
+ " and not test_elevation"
+ " and not test_routing"
+ " 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
(list python-folium
python-geopandas
--
2.39.2
next prev parent reply other threads:[~2023-04-02 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-02 17:42 [bug#62622] [PATCH 0/8] Update proj and a few other geo packages Felix Gruber
2023-04-02 17:45 ` [bug#62622] [PATCH 1/8] gnu: geos: Update to 3.11.2 Felix Gruber
2023-04-02 17:45 ` [bug#62622] [PATCH 2/8] gnu: proj: Update to 9.2.0 Felix Gruber
2023-04-02 17:45 ` [bug#62622] [PATCH 3/8] gnu: python-pyproj: Update to 3.5.0 Felix Gruber
2023-04-02 17:45 ` [bug#62622] [PATCH 4/8] gnu: python-cartopy: Update to 0.21.1 Felix Gruber
2023-04-02 17:45 ` [bug#62622] [PATCH 5/8] gnu: python-rtree: Update to 1.0.1 Felix Gruber
2023-04-02 17:45 ` Felix Gruber [this message]
2023-04-02 17:45 ` [bug#62622] [PATCH 7/8] gnu: pcb2gcode: Update to 2.5.0 Felix Gruber
2023-04-02 17:45 ` [bug#62622] [PATCH 8/8] gnu: qgis: Update to 3.30.1 Felix Gruber
2023-04-12 10:09 ` bug#62622: [PATCH 0/8] Update proj and a few other geo packages Guillaume Le Vaillant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230402174551.159212-6-felgru@posteo.net \
--to=felgru@posteo.net \
--cc=62622@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.