nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 39 lines 801 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "meilisearch"; 10 version = "0.18.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "meilisearch"; 17 repo = "meilisearch-python"; 18 rev = "v${version}"; 19 hash = "sha256-Ym3AbIEf8eMSrtP8W1dPXqL0mTVN2bd8hlxdFhW/dkQ="; 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}