12 buildPythonPackage rec {
17 disabled = pythonOlder "3.8";
19 src = fetchFromGitHub {
22 rev = "refs/tags/${version}";
23 hash = "sha256-EHNkYviafnuU8AADp9oyaDuAnoPOdOVNSLCcoONnHPY=";
26 nativeBuildInputs = [ setuptools ];
28 propagatedBuildInputs = [ botocore ];
30 nativeCheckInputs = [ pytestCheckHook ];
34 # Requires network access
38 # There was a change in python 3.8 that defaults multiprocessing to spawn instead of fork on macOS
39 # See https://bugs.python.org/issue33725 and https://github.com/python/cpython/pull/13603.
40 # 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
41 lib.optionals stdenv.hostPlatform.isDarwin [ "tests/unit/test_compat.py" ];
43 pythonImportsCheck = [ "s3transfer" ];
45 optional-dependencies = {
46 crt = [ botocore.optional-dependencies.crt ];
50 description = "Library for managing Amazon S3 transfers";
51 homepage = "https://github.com/boto/s3transfer";
52 changelog = "https://github.com/boto/s3transfer/blob/${version}/CHANGELOG.rst";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ nickcao ];