at 24.11-pre 44 lines 973 B view raw
1{ 2 lib, 3 azure-core, 4 buildPythonPackage, 5 fetchPypi, 6 pythonOlder, 7 setuptools, 8 typing-extensions, 9}: 10 11buildPythonPackage rec { 12 pname = "azure-cosmos"; 13 version = "4.7.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-ctcUAzE0ZWMCouiVfEuTWQZzvSiLDKYMsSPjSK6ZokE="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 azure-core 27 typing-extensions 28 ]; 29 30 pythonNamespaces = [ "azure" ]; 31 32 # Requires an active Azure Cosmos service 33 doCheck = false; 34 35 pythonImportsCheck = [ "azure.cosmos" ]; 36 37 meta = with lib; { 38 description = "Azure Cosmos DB API"; 39 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos"; 40 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-cosmos_${version}/sdk/cosmos/azure-cosmos/CHANGELOG.md"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ jonringer ]; 43 }; 44}