Skip to content

Commit

Permalink
python3Packages.meilisearch: init at 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Mar 14, 2022
1 parent aa7b129 commit 36ad608
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/meilisearch/default.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 36ad608

Please sign in to comment.