Files
nixpkgs/pkgs/development/python-modules/es-client/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

80 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
click,
cryptography,
dotmap,
ecs-logging,
elastic-transport,
elasticsearch8,
fetchFromGitHub,
hatchling,
mock,
pytest-asyncio,
pytestCheckHook,
pyyaml,
requests,
tiered-debug,
voluptuous,
}:
buildPythonPackage rec {
pname = "es-client";
version = "8.18.2";
pyproject = true;
src = fetchFromGitHub {
owner = "untergeek";
repo = "es_client";
tag = "v${version}";
hash = "sha256-siB17xVRS/eeKOsJcWdh4foOHXbeV8wwRclXDHodADM=";
};
pythonRelaxDeps = true;
build-system = [ hatchling ];
dependencies = [
certifi
click
cryptography
dotmap
ecs-logging
elastic-transport
elasticsearch8
pyyaml
tiered-debug
voluptuous
];
nativeCheckInputs = [
mock
pytest-asyncio
pytestCheckHook
requests
];
pythonImportsCheck = [ "es_client" ];
disabledTests = [
# Tests require local Elasticsearch instance
"test_bad_version_raises"
"test_basic_operation"
"test_client_info"
"test_client_info"
"test_exit_if_not_master"
"test_multiple_hosts_raises"
"test_skip_version_check"
"TestCLIExample"
];
meta = {
description = "Module for building Elasticsearch client objects";
homepage = "https://github.com/untergeek/es_client";
changelog = "https://github.com/untergeek/es_client/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}