about summary refs log tree commit diff
path: root/pkgs/development/python-modules/s3transfer/default.nix
blob: d1d428bcba47c7cfdd5e82a6acee04db9d56c691 (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
{ lib
, botocore
, buildPythonPackage
, docutils
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, wheel
}:

buildPythonPackage rec {
  pname = "s3transfer";
  version = "0.5.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "boto";
    repo = pname;
    rev = version;
    hash = "sha256-0Dl7oKB2xxq/a8do3HgBUIGay88yOGBUdOGo+QCtnUE=";
  };

  propagatedBuildInputs = [
    botocore
  ];

  buildInputs = [
    docutils
    mock
    pytestCheckHook
    wheel
  ];

  disabledTestPaths = [
    # Requires network access
    "tests/integration/test_copy.py"
    "tests/integration/test_delete.py"
    "tests/integration/test_download.py"
    "tests/integration/test_processpool.py"
    "tests/integration/test_s3transfer.py"
    "tests/integration/test_upload.py"
  ];

  pythonImportsCheck = [
    "s3transfer"
  ];

  meta = with lib; {
    description = "Library for managing Amazon S3 transfers";
    homepage = "https://github.com/boto/s3transfer";
    license = licenses.asl20;
    maintainers = with maintainers; [ ];
  };
}