python3Packages.meilisearch: init at 0.18.0

This commit is contained in:
Fabian Affolter
2022-03-14 08:58:41 +01:00
parent aa7b129708
commit 36ad60841c
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "meilisearch";
version = "0.18.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "meilisearch";
repo = "meilisearch-python";
rev = "v${version}";
hash = "sha256-iIFTZKORCXr4mNeWBtbOPWXwORuTV/IKhLYkqFgd3Hw=";
};
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 ];
};
}
+2
View File
@@ -5053,6 +5053,8 @@ in {
mediafile = callPackage ../development/python-modules/mediafile { };
meilisearch = callPackage ../development/python-modules/meilisearch { };
meinheld = callPackage ../development/python-modules/meinheld { };
meld3 = callPackage ../development/python-modules/meld3 { };