2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
camel-converter,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
requests,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meilisearch";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.31.4";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "meilisearch-python";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-+1VqnAIqiLaPl75dH4tf3/GFRuwkSrKpqOcv9dGYsb8=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-12-17 10:02:37 +00:00
|
|
|
camel-converter
|
2022-03-30 09:31:56 +00:00
|
|
|
requests
|
2022-12-17 10:02:37 +00:00
|
|
|
] ++ camel-converter.optional-dependencies.pydantic;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "meilisearch" ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
# Tests spin up a local server and are not mocking the requests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client for the Meilisearch API";
|
|
|
|
homepage = "https://github.com/meilisearch/meilisearch-python";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/meilisearch/meilisearch-python/releases/tag/v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|