1{ buildPythonPackage 2, fetchPypi 3, urllib3, requests 4, nosexcover, mock 5, lib 6}: 7 8buildPythonPackage (rec { 9 pname = "elasticsearch"; 10 # In 7.14.0, the package was intentionally made incompatible with 11 # the OSS version of elasticsearch - don't update past 7.13.x until 12 # there's a clear path forward. See 13 # https://github.com/elastic/elasticsearch-py/issues/1639 for more 14 # info. 15 version = "7.15.2"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "436f871848a5020bf9b47495812b229b59bd0c5d7e40adbd5e3c89896b311704"; 20 }; 21 22 # Check is disabled because running them destroy the content of the local cluster! 23 # https://github.com/elasticsearch/elasticsearch-py/tree/master/test_elasticsearch 24 doCheck = false; 25 propagatedBuildInputs = [ urllib3 requests ]; 26 buildInputs = [ nosexcover mock ]; 27 28 meta = with lib; { 29 description = "Official low-level client for Elasticsearch"; 30 homepage = "https://github.com/elasticsearch/elasticsearch-py"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ desiderius ]; 33 }; 34})