From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eBvzLVyAmGRqRgEASxT56A (envelope-from ) for ; Sun, 25 Jun 2023 19:58:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OKrcLFyAmGRkbwEAG6o9tA (envelope-from ) for ; Sun, 25 Jun 2023 19:58:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 469E13F78C for ; Sun, 25 Jun 2023 19:58:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDT6u-0004yj-IW; Sun, 25 Jun 2023 13:01:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDT6r-0004w2-VF for guix-patches@gnu.org; Sun, 25 Jun 2023 13:01:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDT6r-0001zm-LY for guix-patches@gnu.org; Sun, 25 Jun 2023 13:01:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDT6p-0006Ch-Dt; Sun, 25 Jun 2023 13:01:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55474] [PATCH v5 32/55] gnu: python-django-haystack: Update to 3.2.1. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 25 Jun 2023 17:01:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55474 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55474@debbugs.gnu.org Cc: ngraves@ngraves.fr, Lars-Dominik Braun , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by 55474-submit@debbugs.gnu.org id=B55474.168771245623697 (code B ref 55474); Sun, 25 Jun 2023 17:01:07 +0000 Received: (at 55474) by debbugs.gnu.org; 25 Jun 2023 17:00:56 +0000 Received: from localhost ([127.0.0.1]:43448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDT6e-0006A6-1h for submit@debbugs.gnu.org; Sun, 25 Jun 2023 13:00:56 -0400 Received: from 10.mo575.mail-out.ovh.net ([46.105.79.203]:38455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDT6V-00069H-3r for 55474@debbugs.gnu.org; Sun, 25 Jun 2023 13:00:48 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.108.16.108]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 2072824609 for <55474@debbugs.gnu.org>; Sun, 25 Jun 2023 17:00:46 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-mdphx (unknown [10.110.208.152]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 3074E1FD37; Sun, 25 Jun 2023 17:00:45 +0000 (UTC) Received: from ngraves.fr ([37.59.142.108]) by ghost-submission-6684bf9d7b-mdphx with ESMTPSA id JJ2PAr1ymGS7qwAA+IOhmQ (envelope-from ); Sun, 25 Jun 2023 17:00:45 +0000 X-OVh-ClientIp: 80.215.66.29 Date: Sun, 25 Jun 2023 18:57:33 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: <79ade078335720d3a5595676a65788789415bce0.1687712245.git.ngraves@ngraves.fr> References: <79ade078335720d3a5595676a65788789415bce0.1687712245.git.ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8268045966109565666 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrgeehtddguddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpefhhfegtedtudfggeeitdetvdekleehgfdvgedvhfffudelveetleeltedufedvleenucffohhmrghinhephhgrhihsthgrtghkshgvrghrtghhrdhorhhgnecukfhppeduvdejrddtrddtrddupdektddrvdduhedrieeirddvledpfeejrdehledrudegvddruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheehgeejgeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejhedpmhhouggvpehsmhhtphhouhht X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687715932; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=OvChSy9KYKOxM1qxkRvl2io+xsdx4u/Mxec4j1G+V0U=; b=gq2glyBUD0fsK+YtEnzyTx4cLg2HQlsu+XUAeO9fjiLHuX72N6oG9xZBZKwLWz20TyyzEg L1Sk1BPKqdnV1HbNg/edR86mwWtfepCPIhKFAwWHxfNp/VIKONlp50GDNNbv/NnvUGfDXp LTYQz/kgfIjQkTNTfeyRN2y6a7aITfzSjtmnsaBn9DmhneAXi+phjbxqUPyNgrRs51EAv4 Cw08t8e2dS8rKTB4lMxj4Qy6QLbYtJWbXM9RhQRtXh0qLFvhAO3Bl/1j0gz3oOXR+a7Oh9 n43Mc8M1+MR0oBJJg1SuIqVMy/PD+EsUQ6UB+ZVZ9g3k4m4IwIgpnrGgNL5z+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687715932; a=rsa-sha256; cv=none; b=cClYB5OwDSZIAV3SoGOMvM1UBdSuIERr8yoilWPPlffOhbMKxbyiXhP9cQ5xyOfHqs0AOU oTyThT+ZahTeFVwSOg4LRYta21GGDAkIRye9cXRvYVVvjzNuQ+IZZNl2bSaZkv3exENPFl U+Y9O4XyyJntkZJkPeQjlmzUVOX9tx+MVj69/v8mlL30ma/8ozDmVlXOUqMGAJJ/nLdGMA VLGZBtGrfsf0O1J2jBr+yuYJti7udy13EMsu94UB4cqgbGY09S7PvxfKfkYg+8yoOs1XuV PDMiMxeEs68Kyxt5nZ7p5ye7HFd+FXMKYb7baW8qcz5GL4J067wWxyPjWkk6PQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.25 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 469E13F78C X-Spam-Score: -3.25 X-TUID: oldez16I8o1u * gnu/packages/django.scm (python-django-haystack): Update to 3.2.1. [build-system]: Use pyproject-build-system. [arguments](phases): Delete phase loosen-version-restrictions. Extend and rename phase set-gdal-lib-path to set-lib-path, add phase check. (tests?): Delete argument. [native-inputs]: Add geos. Delete python-pysolr. --- gnu/packages/django.scm | 60 ++++++++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index fa36b2c5b3..64e4c58f41 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -471,34 +471,63 @@ (define-public python-pytest-django (define-public python-django-haystack (package (name "python-django-haystack") - (version "3.1.1") + (version "3.2.1") (source (origin (method url-fetch) (uri (pypi-uri "django-haystack" version)) (sha256 - (base32 - "10kaa5641cakpra2x3jqgys085gdkjcyns26plfyrmfpjmmpa1bd")))) - (build-system python-build-system) + (base32 "194kf9ps1h8bq8q32x6nniy85grl4l5605vgbd0gw9f2xxx1kqwp")))) + (build-system pyproject-build-system) (arguments '(#:phases (modify-phases %standard-phases - (add-after 'unpack 'loosen-verion-restrictions - (lambda _ - (substitute* "setup.py" - (("geopy.*") "geopy\",\n")))) - (add-before 'check 'set-gdal-lib-path + (add-before 'check 'set-lib-path (lambda* (#:key inputs #:allow-other-keys) - (setenv "GDAL_LIBRARY_PATH" - (string-append (assoc-ref inputs "gdal") - "/lib")))) + (setenv "LD_LIBRARY_PATH" + (string-append + (assoc-ref inputs "gdal") "/lib" + ":" (assoc-ref inputs "geos") "/lib")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (begin + ;; Delete absent elasticsearch tests. + (delete-file-recursively "test_haystack/elasticsearch_tests") + (delete-file-recursively "test_haystack/elasticsearch2_tests") + (delete-file-recursively "test_haystack/elasticsearch5_tests") + (delete-file-recursively "test_haystack/elasticsearch7_tests") + ;; Solr tests require a running solr server. + ;; Deactivating solr. + (delete-file-recursively "test_haystack/solr_tests") + (delete-file "haystack/backends/solr_backend.py") + (delete-file + "haystack/management/commands/build_solr_schema.py") + (delete-file + "test_haystack/test_altered_internal_names.py") + (delete-file "test_haystack/multipleindex/tests.py") + (delete-file "test_haystack/spatial/test_spatial.py") + (substitute* "test_haystack/test_loading.py" + (("class ConnectionHandlerTestCase" all) + (string-append + "\nfrom nose.plugins.attrib import attr" + "\n@attr('skip')" + "\n" all))) + (substitute* "test_haystack/settings.py" + (("\"solr\":") + (string-append + "\"solr\": {\"ENGINE\": \"test_haystack.mocks.MockEngine\"}}" + "\n_={\"solr\":"))) + ;; Run tests. + (invoke "django-admin" + "test" "--settings=test_haystack.settings" + "--pythonpath=."))))) ;; Importing this module requires setting up a Django project. - (delete 'sanity-check)) - #:tests? #f)) ; OSError: libgdal.so.27: cannot open shared object file + (delete 'sanity-check)))) (propagated-inputs (list python-django)) (native-inputs - (list gdal + (list gdal geos python-coverage python-dateutil python-geopy @@ -506,7 +535,6 @@ (define-public python-django-haystack python-nose python-requests python-setuptools-scm - python-pysolr python-whoosh)) (home-page "https://haystacksearch.org/") (synopsis "Pluggable search for Django") -- 2.40.1