2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-12-17 10:02:37 +00:00
|
|
|
, camel-converter
|
2022-03-30 09:31:56 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2023-04-12 12:48:02 +00:00
|
|
|
, setuptools
|
2022-03-30 09:31:56 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meilisearch";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.30.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "meilisearch-python";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-gcDJUTg84JugytbUzQzvm3I9YAIboiyvcHe4AcBmpFM=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"meilisearch"
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|