22 buildPythonPackage rec {
23 pname = "elastic-transport";
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
31 repo = "elastic-transport-python";
33 hash = "sha256-5bNsJd0td3aQR+PvDBHg0/f+qPyt/ckWmeDrQJzxhYY=";
37 substituteInPlace setup.cfg \
38 --replace " --cov-report=term-missing --cov=elastic_transport" ""
41 build-system = [ setuptools ];
43 propagatedBuildInputs = [
62 pythonImportsCheck = [ "elastic_transport" ];
66 "ignore::DeprecationWarning"
70 # Tests require network access
74 "test_custom_user_agent"
75 "test_default_headers"
81 "test_debug_logging_uncompressed_body"
82 "test_debug_logging_no_body"
84 "test_sniffed_nodes_added_to_pool"
85 "test_async_transport_httpbin"
89 description = "Transport classes and utilities shared among Python Elastic client libraries";
90 homepage = "https://github.com/elasticsearch/elastic-transport-python";
91 changelog = "https://github.com/elastic/elastic-transport-python/releases/tag/v${version}";
92 license = licenses.asl20;
93 maintainers = with maintainers; [ fab ];