1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 elasticsearch-dsl, 6 django, 7 pythonOlder, 8 elastic-transport, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "django-elasticsearch-dsl"; 14 version = "8.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "django-es"; 21 repo = "django-elasticsearch-dsl"; 22 tag = version; 23 hash = "sha256-GizdFOM4UjI870XdE33D7uXHXkuv/bLYbyi9yyNjti8="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 django 30 elasticsearch-dsl 31 elastic-transport 32 ]; 33 34 # Tests require running Elasticsearch daemon 35 doCheck = false; 36 37 pythonImportsCheck = [ "django_elasticsearch_dsl" ]; 38 39 meta = { 40 description = "Wrapper around elasticsearch-dsl-py for Django models"; 41 homepage = "https://github.com/sabricot/django-elasticsearch-dsl"; 42 license = lib.licenses.bsd2; 43 maintainers = [ lib.maintainers.onny ]; 44 }; 45}