Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 meta = { 39 description = "Microsoft Azure Cognitive Search Client Library for Python"; 40 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/search/azure-search-documents"; 41 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/${src.rev}/sdk/search/azure-search-documents/CHANGELOG.md"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ natsukium ]; 44 }; 45}