2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, aliyun-python-sdk-core
|
|
|
|
, aliyun-python-sdk-kms
|
|
|
|
, aliyun-python-sdk-sts
|
|
|
|
, buildPythonPackage
|
|
|
|
, crcmod
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pycryptodome
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oss2";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.18.3";
|
2022-08-21 13:32:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aliyun";
|
|
|
|
repo = "aliyun-oss-python-sdk";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-jDSXPVyy8XvPgsGZXsdfavFPptq28pCwr9C63OZvNrY=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
crcmod
|
|
|
|
pycryptodome
|
|
|
|
aliyun-python-sdk-kms
|
|
|
|
aliyun-python-sdk-core
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
aliyun-python-sdk-sts
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"oss2"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"tests/test_api_base.py"
|
|
|
|
"tests/test_async_fetch_task.py"
|
2023-05-24 13:37:59 +00:00
|
|
|
"tests/test_bucket_access_monitor.py"
|
2023-10-09 19:29:22 +00:00
|
|
|
"tests/test_bucket_callback_policy.py"
|
2022-08-21 13:32:41 +00:00
|
|
|
"tests/test_bucket_cname.py"
|
2023-10-09 19:29:22 +00:00
|
|
|
"tests/test_bucket_describe_regions.py"
|
2022-08-21 13:32:41 +00:00
|
|
|
"tests/test_bucket_inventory.py"
|
|
|
|
"tests/test_bucket_meta_query.py"
|
|
|
|
"tests/test_bucket_replication.py"
|
2023-05-24 13:37:59 +00:00
|
|
|
"tests/test_bucket_resource_group.py"
|
|
|
|
"tests/test_bucket_style.py"
|
2022-08-21 13:32:41 +00:00
|
|
|
"tests/test_bucket_transfer_acceleration.py"
|
|
|
|
"tests/test_bucket_versioning.py"
|
|
|
|
"tests/test_bucket_worm.py"
|
|
|
|
"tests/test_bucket.py"
|
|
|
|
"tests/test_chinese.py"
|
|
|
|
"tests/test_crc64_combine.py"
|
|
|
|
"tests/test_credentials_provider.py"
|
|
|
|
"tests/test_crypto_multipart.py"
|
|
|
|
"tests/test_crypto_object.py"
|
|
|
|
"tests/test_crypto.py"
|
|
|
|
"tests/test_download.py"
|
2023-10-09 19:29:22 +00:00
|
|
|
"tests/test_exception_ec.py"
|
2022-08-21 13:32:41 +00:00
|
|
|
"tests/test_headers.py"
|
|
|
|
"tests/test_image.py"
|
|
|
|
"tests/test_init.py"
|
|
|
|
"tests/test_iterator.py"
|
|
|
|
"tests/test_lifecycle_versioning.py"
|
|
|
|
"tests/test_list_objects_v2.py"
|
|
|
|
"tests/test_live_channel.py"
|
|
|
|
"tests/test_multipart.py"
|
|
|
|
"tests/test_object_request_payment_versions.py"
|
|
|
|
"tests/test_object_request_payment.py"
|
|
|
|
"tests/test_object_versioning.py"
|
|
|
|
"tests/test_object.py"
|
|
|
|
"tests/test_proxy.py"
|
|
|
|
"tests/test_put_object_chunked.py"
|
|
|
|
"tests/test_qos_info.py"
|
|
|
|
"tests/test_request_payment.py"
|
|
|
|
"tests/test_select_csv_object.py"
|
|
|
|
"tests/test_select_json_object.py"
|
|
|
|
"tests/test_server_side_encryotion.py"
|
|
|
|
"tests/test_sign.py"
|
|
|
|
"tests/test_traffic_limit.py"
|
|
|
|
"tests/test_upload.py"
|
|
|
|
"tests/test_utils.py"
|
|
|
|
"tests/test_website.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_crypto_get_compact_deprecated_kms"
|
2023-10-09 19:29:22 +00:00
|
|
|
# RuntimeError
|
|
|
|
"test_crypto_put"
|
2023-11-16 04:20:00 +00:00
|
|
|
# Tests require network access
|
|
|
|
"test_write_get_object_response"
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Alibaba Cloud OSS SDK for Python";
|
|
|
|
homepage = "https://github.com/aliyun/aliyun-oss-python-sdk";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/aliyun/aliyun-oss-python-sdk/releases/tag/${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|