Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 69 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies django, django-tasks,
# tests django-modelcluster, django-taggit, dj-database-url, psycopg, pytestCheckHook, pytest-django,}:
buildPythonPackage (finalAttrs: { pname = "modelsearch"; version = "1.3"; pyproject = true;
src = fetchFromGitHub { owner = "wagtail"; repo = "django-modelsearch"; tag = "v${finalAttrs.version}"; hash = "sha256-eQ0ZWUR9xXm0RkBpZ3Z+ruxlWvJdWed2sX6XkZIAZBk="; };
build-system = [ setuptools ];
pythonRelaxDeps = [ "django-tasks" ]; dependencies = [ django django-tasks ];
pythonImportsCheck = [ "modelsearch" ];
nativeCheckInputs = [ dj-database-url psycopg django-modelcluster django-taggit pytest-django pytestCheckHook ];
preCheck = '' export DJANGO_SETTINGS_MODULE=modelsearch.test.settings export SEARCH_BACKEND=db '';
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/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ GaetanLepage ]; };})