1{
2 lib,
3 azure-common,
4 azure-mgmt-core,
5 buildPythonPackage,
6 fetchPypi,
7 isodate,
8 pythonOlder,
9 typing-extensions,
10}:
11
12buildPythonPackage rec {
13 pname = "azure-mgmt-search";
14 version = "9.1.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-U7xu6tsJdNIfEguyG7Xmgn321lDhc0dGD9g+LWiINZk=";
22 };
23
24 propagatedBuildInputs = [
25 azure-common
26 azure-mgmt-core
27 isodate
28 ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "azure.mgmt.search" ];
34
35 meta = with lib; {
36 description = "This is the Microsoft Azure Search Management Client Library";
37 homepage = "https://github.com/Azure/azure-sdk-for-python";
38 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-search_${version}/sdk/search/azure-mgmt-search/CHANGELOG.md";
39 license = licenses.mit;
40 maintainers = with maintainers; [ maxwilson ];
41 };
42}