depot/third_party/nixpkgs/pkgs/development/python-modules/meilisearch/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

39 lines
801 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "meilisearch";
version = "0.18.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "meilisearch";
repo = "meilisearch-python";
rev = "v${version}";
hash = "sha256-Ym3AbIEf8eMSrtP8W1dPXqL0mTVN2bd8hlxdFhW/dkQ=";
};
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 ];
};
}