diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-08-12 19:53:45 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-13 12:46:43 +0100 |
| commit | fed8c888d7d2f8ab55b19948594f51f5c423f5f7 (patch) | |
| tree | ca5558cc9349acc35527d87a9f188db567fc1e40 /gnu/packages/python-xyz.scm | |
| parent | c1746bbf44d78068e13d7d75dc7365533d832955 (diff) | |
gnu: python-owslib: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-owslib):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:tests?>: Enable them.
<#:test-flags>: Disable problematic tests.
<#:phases>: Restore 'sanity-check phase. Add phase
'cleanup-build-directory.
[native-inputs]: Add python-dateutil, python-pyproj, python-pyyaml,
python-pytest, python-pytest-cov, python-pytz, python-requests,
python-setuptools, and python-wheel.
Change-Id: I3707ca064a63ff24a4fcfd9d37ea4b7178491ce1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2b62547dde..9ffeccc2d2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -32841,16 +32841,46 @@ your process.") (version "0.19.2") (source (origin - (method url-fetch) - (uri (pypi-uri "OWSLib" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/geopython/OWSLib") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0")))) - (build-system python-build-system) + (base32 "0nl1j6wk2rly72zydzi86mdb7svl5mwfkdknmm2kw7clg5f8p9ix")))) + (build-system pyproject-build-system) (arguments - ;; TODO: package dependencies required for tests. - '(#:tests? #f - #:phases (modify-phases %standard-phases - (delete 'sanity-check)))) + (list + #:test-flags + #~(list + ;; XXX: Those tests require network access. + "-k" (string-join + (list "not test_ows_interfaces_wcs" + "test_wfs_110_remotemd_parse_all" + "test_wfs_110_remotemd_parse_single" + "test_wfs_200_remotemd_parse_all" + "test_wfs_200_remotemd_parse_single" + "test_wms_130_remotemd_parse_all" + "test_wms_130_remotemd_parse_single" + "test_wmts_example_informatievlaanderen") + " and not ") + ;; XXX: Not collected properly. + "--ignore-glob=tests/doctests/*") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'cleanup-build-directory + (lambda _ + (delete-file-recursively "build")))))) + (native-inputs + (list python-dateutil + python-pyproj + python-pyyaml + python-pytest + python-pytest-cov + python-pytz + python-requests + python-setuptools + python-wheel)) (synopsis "Interface for Open Geospatial Consortium web service") (description "OWSLib is a Python package for client programming with Open Geospatial |
