Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.31.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "meilisearch"; 20 repo = "meilisearch-python"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-+1VqnAIqiLaPl75dH4tf3/GFRuwkSrKpqOcv9dGYsb8="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 camel-converter 29 requests 30 ] ++ camel-converter.optional-dependencies.pydantic; 31 32 pythonImportsCheck = [ "meilisearch" ]; 33 34 # Tests spin up a local server and are not mocking the requests 35 doCheck = false; 36 37 meta = with lib; { 38 description = "Client for the Meilisearch API"; 39 homepage = "https://github.com/meilisearch/meilisearch-python"; 40 changelog = "https://github.com/meilisearch/meilisearch-python/releases/tag/v${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}