depot/third_party/nixpkgs/pkgs/development/python-modules/azure-cosmos/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
973 B
Nix

{
lib,
azure-core,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "azure-cosmos";
version = "4.6.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-2uxqwgHGRzsJK2Ku5x44G+62w6jcNhJJgytwSMTwYeI=";
};
build-system = [ setuptools ];
dependencies = [
azure-core
typing-extensions
];
pythonNamespaces = [ "azure" ];
# Requires an active Azure Cosmos service
doCheck = false;
pythonImportsCheck = [ "azure.cosmos" ];
meta = with lib; {
description = "Azure Cosmos DB API";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-cosmos_${version}/sdk/cosmos/azure-cosmos/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}