Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 42 lines 993 B view raw
1{ lib 2, buildPythonPackage 3, camel-converter 4, fetchFromGitHub 5, pythonOlder 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "meilisearch"; 11 version = "0.23.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "meilisearch"; 18 repo = "meilisearch-python"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-7TiXyuB2veNJtK6UmQg01O82r549aRmEa/DFzJtnQug="; 21 }; 22 23 propagatedBuildInputs = [ 24 camel-converter 25 requests 26 ] ++ camel-converter.optional-dependencies.pydantic; 27 28 pythonImportsCheck = [ 29 "meilisearch" 30 ]; 31 32 # Tests spin up a local server and are not mocking the requests 33 doCheck = false; 34 35 meta = with lib; { 36 description = "Client for the Meilisearch API"; 37 homepage = "https://github.com/meilisearch/meilisearch-python"; 38 changelog = "https://github.com/meilisearch/meilisearch-python/releases/tag/v${version}"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}