1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 azure-common,
7 azure-core,
8 isodate,
9}:
10
11buildPythonPackage rec {
12 pname = "azure-search-documents";
13 version = "11.4.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "Azure";
18 repo = "azure-sdk-for-python";
19 rev = "azure-search-documents_${version}";
20 hash = "sha256-0J9AXDH7TOkcKDwFbICiMatLAwiFq3Jtoji8fJSOg8k=";
21 };
22
23 sourceRoot = "${src.name}/sdk/search/azure-search-documents";
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 azure-common
29 azure-core
30 isodate
31 ];
32
33 pythonImportsCheck = [ "azure.search.documents" ];
34
35 # require devtools_testutils which is a internal package for azure-sdk
36 doCheck = false;
37
38 # multiple packages in the repo and the updater picks the wrong tag
39 passthru.skipBulkUpdate = true;
40
41 meta = {
42 description = "Microsoft Azure Cognitive Search Client Library for Python";
43 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/search/azure-search-documents";
44 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/${src.rev}/sdk/search/azure-search-documents/CHANGELOG.md";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ natsukium ];
47 };
48}