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