depot/third_party/nixpkgs/pkgs/development/python-modules/meilisearch/default.nix

40 lines
801 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "meilisearch";
version = "0.18.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "meilisearch";
repo = "meilisearch-python";
rev = "v${version}";
hash = "sha256-U9fdMcxPdtLiUStgTez99SPRh93WLZNVn8uIj4lNWh4=";
};
propagatedBuildInputs = [
requests
];
pythonImportsCheck = [
"meilisearch"
];
# Tests spin up a local server and are not mocking the requests
doCheck = false;
meta = with lib; {
description = "Client for the Meilisearch API";
homepage = "https://github.com/meilisearch/meilisearch-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}