blob: 73fd60e8d7be77c97b1e02b066ae512f2744e92b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
django,
django-tasks,
# tests
pytest-django,
pytestCheckHook,
django-modelcluster,
}:
buildPythonPackage rec {
pname = "modelsearch";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "wagtail";
repo = "django-modelsearch";
tag = "v${version}";
hash = "sha256-tjwVepI9mdrMbTtxfe6yNUrSHWKndGxv2lJ8AfyNcr0=";
};
build-system = [
setuptools
];
dependencies = [
django
django-modelcluster
django-tasks
];
pythonImportsCheck = [ "modelsearch" ];
# django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured.
# You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
doCheck = false;
meta = {
description = "Index Django Models with Elasticsearch or OpenSearch and query them with the ORM";
homepage = "https://github.com/wagtail/django-modelsearch";
changelog = "https://github.com/wagtail/django-modelsearch/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|