49 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
azure-common,
azure-core,
isodate,
}:
buildPythonPackage rec {
pname = "azure-search-documents";
version = "14.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-sdk-for-python";
tag = "azure-mgmt-containerregistry_${version}";
hash = "sha256-FRdXdk3+G/xPraB2laTV6Xs/yNY65gebvMCKPOgby1g=";
};
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;
# multiple packages in the repo and the updater picks the wrong tag
passthru.skipBulkUpdate = true;
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 ];
};
}