summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-16 22:30:38 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:59 +0100
commitf55ff0510ae3cdd4dabdc739498260db467c3180 (patch)
treedde9f029082cc28f7d46852682f0c402abbfae05
parenta33fdca836b8f2c7f7291f042f70e437a863655a (diff)
gnu: python-pymongo: Update to 4.14.0.
* gnu/packages/python-xyz.scm (python-pymongo): Update to 4.14.0. [build-system]: Use pyproject. [arguments] <test-flags>: Skip prolematic test. [propagated-inputs]: Add python-dnspython. [native-inputs]: Add python-hatch-requirements-txt, python-hatchling, python-pytest, python-pytest-asyncio, and python-setuptools. Change-Id: If292db8d2e00339048f553a199315d5497173b53
-rw-r--r--gnu/packages/python-xyz.scm43
1 files changed, 34 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e2b2daff0aa..9dcfc98242a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24765,16 +24765,41 @@ natural language processing libraries.")
(define-public python-pymongo
(package
(name "python-pymongo")
- (version "4.1.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pymongo" version))
- (sha256
- (base32
- "1m9hc2a4kgg10xy3g5x00z4a7rrk9s0rbf5qfypwnhq0kdfg5f6p"))))
- (build-system python-build-system)
+ (version "4.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pymongo" version))
+ (sha256
+ (base32 "1ld18zyh4f6zxwswsc018d48lq7imf85zrf49w9wyy6fvlzlwrqm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 1274 passed, 6231 skipped, 1441 deselected, 2 warnings
+ #:test-flags
+ ;; Tests need access to /etc/resolve.conf.
+ #~(list "--ignore=test/asynchronous/test_srv_polling.py"
+ "--ignore=test/test_srv_polling.py"
+ "-k" (string-join
+ ;; Tests need access to /etc/resolve.conf
+ (list "not test_connection_timeout_ms_propagates_to_DNS_resolver"
+ "test_detected_environment_warning"
+ ;; XXX: Tests fail with assertion is not equal.
+ "test_test_uri_options_srv-options_SRV_URI_with_custom_srvServiceName"
+ "test_test_uri_options_srv-options_SRV_URI_with_invalid_type_for_srvMaxHosts"
+ "test_test_uri_options_srv-options_SRV_URI_with_negative_integer_for_srvMaxHosts"
+ "test_test_uri_options_srv-options_SRV_URI_with_positive_srvMaxHosts_and_loadBalanced"
+ "test_test_uri_options_srv-options_SRV_URI_with_srvMaxHosts")
+ " and not "))))
+ (native-inputs
+ (list python-hatch-requirements-txt
+ python-hatchling
+ python-pytest
+ python-pytest-asyncio
+ python-setuptools))
(propagated-inputs
- (list python-certifi))
+ (list python-certifi
+ python-dnspython))
(home-page "https://github.com/mongodb/mongo-python-driver")
(synopsis "Python driver for MongoDB")
(description "Python driver for MongoDB.")