1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "meilisearch"; 10 version = "0.19.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "meilisearch"; 17 repo = "meilisearch-python"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-/z1UtZJE91dUHogXCbCv8nI8bd26HYVi1OzUV3sArJU="; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 pythonImportsCheck = [ 27 "meilisearch" 28 ]; 29 30 # Tests spin up a local server and are not mocking the requests 31 doCheck = false; 32 33 meta = with lib; { 34 description = "Client for the Meilisearch API"; 35 homepage = "https://github.com/meilisearch/meilisearch-python"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}