53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
azure-common,
|
|
azure-core,
|
|
isodate,
|
|
gitUpdater,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "azure-search-documents";
|
|
version = "11.5.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "azure-sdk-for-python";
|
|
tag = "azure_search_documents_${version}";
|
|
hash = "sha256-RcVdqI50lsYed9L6Kz7faNLec1Y9zq685SGnwaEw6Qc=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/sdk/search/azure-search-documents";
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
azure-common
|
|
azure-core
|
|
isodate
|
|
];
|
|
|
|
pythonImportsCheck = [ "azure.search.documents" ];
|
|
|
|
# require devtools_testutils which is a internal package for azure-sdk
|
|
doCheck = false;
|
|
|
|
passthru = {
|
|
# multiple packages in the repo and the updater picks the wrong tag
|
|
skipBulkUpdate = true;
|
|
updateScript = gitUpdater { rev-prefix = "azure.search.documents_"; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Microsoft Azure Cognitive Search Client Library for Python";
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/search/azure-search-documents";
|
|
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/${src.tag}/sdk/search/azure-search-documents/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
};
|
|
}
|