summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/azure-storage-common/default.nix
blob: 3b05afab23a24f30910e9d0a92b8d11692410e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  azure-common,
  cryptography,
  python-dateutil,
  requests,
  isPy3k,
  azure-storage-nspkg,
}:

buildPythonPackage (finalAttrs: {
  pname = "azure-storage-common";
  version = "2.1.0";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-zO3vXGcie8TWZw/9N87Bj7UpobfDpeU+QJbrDPI9xz8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    azure-common
    cryptography
    python-dateutil
    requests
  ]
  ++ lib.optional (!isPy3k) azure-storage-nspkg;

  # has no tests
  doCheck = false;

  pythonImportsCheck = [ "azure.storage.common" ];

  meta = {
    description = "Client library for Microsoft Azure Storage services containing common code shared by blob, file and queue";
    homepage = "https://github.com/Azure/azure-sdk-for-python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ cmcdragonkai ];
  };
})