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.9.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 pname = "azure_cosmos"; 20 inherit version; 21 hash = "sha256-xw20y/VbD/Jh7Xu4qjJaXfpWXTxuqkPXXSauXirW108="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 azure-core 28 typing-extensions 29 ]; 30 31 pythonNamespaces = [ "azure" ]; 32 33 # Requires an active Azure Cosmos service 34 doCheck = false; 35 36 pythonImportsCheck = [ "azure.cosmos" ]; 37 38 meta = with lib; { 39 description = "Azure Cosmos DB API"; 40 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos"; 41 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-cosmos_${version}/sdk/cosmos/azure-cosmos/CHANGELOG.md"; 42 license = licenses.mit; 43 maintainers = [ ]; 44 }; 45}