Files
nixpkgs/pkgs/development/python-modules/elasticsearch-dsl/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

50 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
elasticsearch,
fetchPypi,
python-dateutil,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "elasticsearch-dsl";
version = "8.18.0";
pyproject = true;
src = fetchPypi {
pname = "elasticsearch_dsl";
inherit version;
hash = "sha256-djRl26nq4Wat0QVn6STGVzCqEigZsIv+mgd+kbE7MNE=";
};
build-system = [ setuptools ];
dependencies = [
elasticsearch
python-dateutil
typing-extensions
];
optional-dependencies = {
async = [ elasticsearch ] ++ elasticsearch.optional-dependencies.async;
};
# ImportError: No module named test_elasticsearch_dsl
# Tests require a local instance of elasticsearch
doCheck = false;
meta = {
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";
changelog = "https://github.com/elastic/elasticsearch-dsl-py/blob/v${version}/Changelog.rst";
license = lib.licenses.asl20;
};
}