1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/elasticsearch-dsl/default.nix

39 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, elasticsearch
, ipaddress
, python-dateutil
, six
}:
buildPythonPackage rec {
pname = "elasticsearch-dsl";
version = "7.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "c4a7b93882918a413b63bed54018a1685d7410ffd8facbc860ee7fd57f214a6d";
};
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
++ lib.optional (!isPy3k) ipaddress;
# ImportError: No module named test_elasticsearch_dsl
# Tests require a local instance of elasticsearch
doCheck = false;
meta = with lib; {
description = "High level Python client for Elasticsearch";
longDescription = ''
Elasticsearch DSL is a high-level library whose aim is to help with
writing and running queries against Elasticsearch. It is built on top of
the official low-level client (elasticsearch-py).
'';
homepage = "https://github.com/elasticsearch/elasticsearch-dsl-py";
license = licenses.asl20;
maintainers = with maintainers; [ desiderius ];
};
}