nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 azure-core,
4 buildPythonPackage,
5 fetchPypi,
6 setuptools,
7 typing-extensions,
8}:
9
10buildPythonPackage rec {
11 pname = "azure-cosmos";
12 version = "4.14.5";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "azure_cosmos";
17 inherit version;
18 hash = "sha256-MjmmBf4pyUt3ORgmdzqj0Nm75Lk5A/zltkNLDzJ0K6c=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 azure-core
25 typing-extensions
26 ];
27
28 pythonNamespaces = [ "azure" ];
29
30 # Requires an active Azure Cosmos service
31 doCheck = false;
32
33 pythonImportsCheck = [ "azure.cosmos" ];
34
35 meta = {
36 description = "Azure Cosmos DB API";
37 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos";
38 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-cosmos_${version}/sdk/cosmos/azure-cosmos/CHANGELOG.md";
39 license = lib.licenses.mit;
40 maintainers = [ ];
41 };
42}