From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sAL7JFLcXF+LVgAA0tVLHw (envelope-from ) for ; Sat, 12 Sep 2020 14:33:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GBF7H1LcXF8lJQAA1q6Kng (envelope-from ) for ; Sat, 12 Sep 2020 14:33:54 +0000 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 4B9D69408DB for ; Sat, 12 Sep 2020 14:33:54 +0000 (UTC) Received: from localhost ([::1]:60174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH6bB-0000TG-7b for larch@yhetil.org; Sat, 12 Sep 2020 10:33:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH6aQ-0007Oy-NP for guix-patches@gnu.org; Sat, 12 Sep 2020 10:33:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kH6aQ-0005rc-9T for guix-patches@gnu.org; Sat, 12 Sep 2020 10:33:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kH6aQ-00049A-6o for guix-patches@gnu.org; Sat, 12 Sep 2020 10:33:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43354] [PATCH 44/55] gnu: Add python-django-url-filter. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Sep 2020 14:33:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43354 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43354@debbugs.gnu.org Received: via spool by 43354-submit@debbugs.gnu.org id=B43354.159992118215870 (code B ref 43354); Sat, 12 Sep 2020 14:33:06 +0000 Received: (at 43354) by debbugs.gnu.org; 12 Sep 2020 14:33:02 +0000 Received: from localhost ([127.0.0.1]:48742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH6aL-00047n-VS for submit@debbugs.gnu.org; Sat, 12 Sep 2020 10:33:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH6aL-000474-5n for 43354@debbugs.gnu.org; Sat, 12 Sep 2020 10:33:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36428) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH6aF-0005pO-Sn for 43354@debbugs.gnu.org; Sat, 12 Sep 2020 10:32:55 -0400 Received: from ti0006q161-3115.bb.online.no ([88.95.106.80]:53570 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kH6aD-0007zU-I1 for 43354@debbugs.gnu.org; Sat, 12 Sep 2020 10:32:54 -0400 From: Marius Bakke Date: Sat, 12 Sep 2020 16:29:00 +0200 Message-Id: <20200912142911.6231-44-marius@gnu.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200912142911.6231-1-marius@gnu.org> References: <20200912142911.6231-1-marius@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: f3cSLB/ev9dL * gnu/packages/django.scm (python-django-url-filter): New public variable. --- gnu/packages/django.scm | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index df8edb2537..51eb1789f5 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -1462,3 +1462,50 @@ to ElasticSearch.") "This package provides mappings for the PostgreSQL @code{INET} and @code{CIDR} fields for use in Django projects.") (license license:bsd-3))) + +(define-public python-django-url-filter + (package + (name "python-django-url-filter") + (version "0.3.15") + (home-page "https://github.com/miki725/django-url-filter") + (source (origin + (method git-fetch) + (uri (git-reference (url home-page) (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0r4zhqhs8y6cnplwyvcb0zpijizw1ifnszs38n4w8138657f9026")))) + (build-system python-build-system) + (arguments + '(#:tests? #f ;FIXME: Django raises "Apps aren't loaded yet"!? + #:phases (modify-phases %standard-phases + (add-before 'check 'loosen-requirements + (lambda _ + ;; Do not depend on compatibility package for old + ;; Python versions. + (substitute* "requirements.txt" + (("enum-compat") "")) + #t)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (begin + (setenv "PYTHONPATH" + (string-append "./build/lib:.:" + (getenv "PYTHONPATH"))) + (setenv "DJANGO_SETTINGS_MODULE" + "test_project.settings") + (invoke "pytest" "-vv" "--doctest-modules" + "tests/" "url_filter/")) + (format #t "test suite not run~%"))))))) + (propagated-inputs + `(("python-cached-property" ,python-cached-property) + ("python-django" ,python-django) + ("python-six" ,python-six))) + (synopsis "Filter data via human-friendly URLs") + (description + "The main goal of Django URL Filter is to provide an easy URL interface +for filtering data. It allows the user to safely filter by model attributes +and also allows to specify the lookup type for each filter (very much like +Django's filtering system in ORM).") + (license license:expat))) -- 2.28.0