python311Packages.s3transfer: 0.8.2 -> 0.10.0

Diff: https://github.com/boto/s3transfer/compare/refs/tags/0.8.2...0.10.0

Changelog: https://github.com/boto/s3transfer/blob/0.10.0/CHANGELOG.rst
This commit is contained in:
Fabian Affolter 2024-01-25 21:55:51 +01:00
parent 3a9389525e
commit e6faa8eab0

View File

@ -1,29 +1,38 @@
{ lib
, stdenv
, botocore
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, stdenv
, setuptools
}:
buildPythonPackage rec {
pname = "s3transfer";
version = "0.10.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "boto";
repo = pname;
repo = "s3transfer";
rev = "refs/tags/${version}";
hash = "sha256-21xycx1+84uY4gFr7N+ra98dpsEwxy9zeSl4QA66nUc=";
};
propagatedBuildInputs = [ botocore ];
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
propagatedBuildInputs = [
botocore
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
# Requires network access
@ -32,12 +41,18 @@ buildPythonPackage rec {
# 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" ];
lib.optionals stdenv.isDarwin [
"tests/unit/test_compat.py"
];
pythonImportsCheck = [ "s3transfer" ];
pythonImportsCheck = [
"s3transfer"
];
passthru.optional-dependencies = {
crt = [ botocore.optional-dependencies.crt ];
crt = [
botocore.optional-dependencies.crt
];
};
meta = with lib; {