567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
960 B
Nix
43 lines
960 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
camel-converter,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meilisearch";
|
|
version = "0.39.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "meilisearch";
|
|
repo = "meilisearch-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-+BhoJjYpvRSMK8P6coHYH0KFTDUKOeeEmyogYpAMWeE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
camel-converter
|
|
requests
|
|
]
|
|
++ camel-converter.optional-dependencies.pydantic;
|
|
|
|
pythonImportsCheck = [ "meilisearch" ];
|
|
|
|
# Tests spin up a local server and are not mocking the requests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Client for the Meilisearch API";
|
|
homepage = "https://github.com/meilisearch/meilisearch-python";
|
|
changelog = "https://github.com/meilisearch/meilisearch-python/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|