depot/third_party/nixpkgs/pkgs/development/python-modules/azure-search-documents/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
azure-common,
azure-core,
isodate,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "azure-search-documents";
version = "11.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-sdk-for-python";
rev = "azure-search-documents_${version}";
hash = "sha256-0J9AXDH7TOkcKDwFbICiMatLAwiFq3Jtoji8fJSOg8k=";
};
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;
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.rev}/sdk/search/azure-search-documents/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}