Files
nixpkgs/pkgs/development/python-modules/meilisearch/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

43 lines
960 B
Nix

{
lib,
buildPythonPackage,
camel-converter,
fetchFromGitHub,
setuptools,
requests,
}:
buildPythonPackage rec {
pname = "meilisearch";
version = "0.38.0";
pyproject = true;
src = fetchFromGitHub {
owner = "meilisearch";
repo = "meilisearch-python";
tag = "v${version}";
hash = "sha256-KTWeBjNQDZEla2iDfsW5cuGfjoV0c2MV8HrOxg0hs4E=";
};
build-system = [ setuptools ];
dependencies = [
camel-converter
requests
]
++ camel-converter.optional-dependencies.pydantic;
pythonImportsCheck = [ "meilisearch" ];
# Tests spin up a local server and are not mocking the requests
doCheck = false;
meta = {
description = "Client for the Meilisearch API";
homepage = "https://github.com/meilisearch/meilisearch-python";
changelog = "https://github.com/meilisearch/meilisearch-python/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}