[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/46: gnu: Add python-django-haystack.
From: |
guix-commits |
Subject: |
33/46: gnu: Add python-django-haystack. |
Date: |
Tue, 21 Jul 2020 08:49:44 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 4a82decd87f49e30c55c629a99ef483516042702
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 21 12:29:56 2020 +0300
gnu: Add python-django-haystack.
* gnu/packages/django.scm (python-django-haystack): New variable.
---
gnu/packages/django.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 56b00c8..bb1f6a1 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -32,6 +32,7 @@
#:use-module (gnu packages base)
#:use-module (gnu packages databases)
#:use-module (gnu packages check)
+ #:use-module (gnu packages geo)
#:use-module (gnu packages python)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
@@ -281,6 +282,54 @@ useful tools for testing Django applications and
projects.")
(define-public python2-pytest-django
(package-with-python2 python-pytest-django))
+(define-public python-django-haystack
+ (package
+ (name "python-django-haystack")
+ (version "2.8.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "django-haystack" version))
+ (sha256
+ (base32
+ "1302fqsrx8w474xk5cmnmg3hjqfprlxnjg9qlg86arsr4v4vqm4b"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'loosen-verion-restrictions
+ (lambda _
+ (substitute* "setup.py"
+ (("geopy.*") "geopy',\n"))
+ #t))
+ (add-before 'check 'set-gdal-lib-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "GDAL_LIBRARY_PATH"
+ (string-append (assoc-ref inputs "gdal")
+ "/lib"))
+ #t)))
+ #:tests? #f)) ; OSError: libgdal.so.27: cannot open shared object file
+ (propagated-inputs
+ `(("python-django" ,python-django)))
+ (native-inputs
+ `(("gdal" ,gdal)
+ ("python-coverage" ,python-coverage)
+ ("python-dateutil" ,python-dateutil)
+ ("python-geopy" ,python-geopy)
+ ("python-mock" ,python-mock)
+ ("python-nose" ,python-nose)
+ ("python-requests" ,python-requests)
+ ("python-setuptools-scm" ,python-setuptools-scm)
+ ("python-pysolr" ,python-pysolr)
+ ("python-whoosh" ,python-whoosh)))
+ (home-page "http://haystacksearch.org/")
+ (synopsis "Pluggable search for Django")
+ (description "Haystack provides modular search for Django. It features a
+unified, familiar API that allows you to plug in different search backends
+(such as Solr, Elasticsearch, Whoosh, Xapian, etc.) without having to modify
+your code.")
+ (license license:bsd-3)))
+
(define-public python-django-filter
(package
(name "python-django-filter")
- 10/46: gnu: Add python-geographiclib., (continued)
- 10/46: gnu: Add python-geographiclib., guix-commits, 2020/07/21
- 09/46: gnu: Add python-blessed., guix-commits, 2020/07/21
- 20/46: gnu: Add python-flufl-lock., guix-commits, 2020/07/21
- 21/46: gnu: Add python-flufl-i18n., guix-commits, 2020/07/21
- 14/46: gnu: Add python-zope-deferredimport., guix-commits, 2020/07/21
- 19/46: gnu: Add python-lazr-config., guix-commits, 2020/07/21
- 36/46: gnu: python-django-rq: Fix test suite., guix-commits, 2020/07/21
- 39/46: gnu: Add python-django-sekizai., guix-commits, 2020/07/21
- 08/46: gnu: Add python-jinxed., guix-commits, 2020/07/21
- 32/46: gnu: Add python-django-q., guix-commits, 2020/07/21
- 33/46: gnu: Add python-django-haystack.,
guix-commits <=
- 34/46: gnu: Add python-django-classy-tags., guix-commits, 2020/07/21
- 13/46: gnu: Add python-zope-hookable., guix-commits, 2020/07/21
- 15/46: gnu: python-zope-component: Update to 4.6.2., guix-commits, 2020/07/21
- 17/46: gnu: Add python-authheaders., guix-commits, 2020/07/21
- 23/46: gnu: Add python-flufl-testing., guix-commits, 2020/07/21
- 24/46: gnu: Add python-aiosmtpd., guix-commits, 2020/07/21
- 26/46: gnu: Add python-rcssmin., guix-commits, 2020/07/21
- 29/46: gnu: Add python-csscompressor., guix-commits, 2020/07/21
- 30/46: gnu: gunicorn-bootstrap: Re-indent., guix-commits, 2020/07/21
- 31/46: gnu: Add python-django-picklefield., guix-commits, 2020/07/21