1{
2 lib,
3 buildPythonPackage,
4 camel-converter,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "meilisearch";
13 version = "0.37.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "meilisearch";
20 repo = "meilisearch-python";
21 tag = "v${version}";
22 hash = "sha256-KKJ93WvkbQEtyRgROT3uGShLSwOaKrOpPDNyMJLqQ4M=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 camel-converter
29 requests
30 ]
31 ++ camel-converter.optional-dependencies.pydantic;
32
33 pythonImportsCheck = [ "meilisearch" ];
34
35 # Tests spin up a local server and are not mocking the requests
36 doCheck = false;
37
38 meta = with lib; {
39 description = "Client for the Meilisearch API";
40 homepage = "https://github.com/meilisearch/meilisearch-python";
41 changelog = "https://github.com/meilisearch/meilisearch-python/releases/tag/${src.tag}";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}