02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{ lib
|
|
, botocore
|
|
, buildPythonPackage
|
|
, docutils
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, stdenv
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "s3transfer";
|
|
version = "0.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boto";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-LM1/joc6TeyLLeAHpuCTz2vgpQ3TMkHrKitfiUp5ZrY=";
|
|
};
|
|
|
|
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"
|
|
] ++
|
|
# There was a change in python 3.8 that defaults multiprocessing to spawn instead of fork on macOS
|
|
# See https://bugs.python.org/issue33725 and https://github.com/python/cpython/pull/13603.
|
|
# I suspect the underlying issue here is that upstream tests aren't compatible with spawn multiprocessing, and pass on linux where the default is still fork
|
|
lib.optionals stdenv.isDarwin [ "tests/unit/test_compat.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; [ ];
|
|
};
|
|
}
|