1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 oss2,
7 pytest-asyncio,
8 pytest-mock,
9 pytestCheckHook,
10 pythonOlder,
11 requests,
12 setuptools,
13 setuptools-scm,
14}:
15
16buildPythonPackage rec {
17 pname = "aiooss2";
18 version = "0.2.11";
19 pyproject = true;
20
21 disabled = pythonOlder "3.8";
22
23 src = fetchFromGitHub {
24 owner = "karajan1001";
25 repo = "aiooss2";
26 rev = "refs/tags/${version}";
27 hash = "sha256-6tkJG6Jjvo2OaN9cRbs/7ApcrKiZ5tGSPUfugAx7iJU=";
28 };
29
30 pythonRelaxDeps = [
31 "aiohttp"
32 "oss2"
33 ];
34
35 build-system = [
36 setuptools
37 setuptools-scm
38 ];
39
40
41 dependencies = [
42 aiohttp
43 oss2
44 ];
45
46 nativeCheckInputs = [
47 pytest-mock
48 pytest-asyncio
49 pytestCheckHook
50 requests
51 ];
52
53 pythonImportsCheck = [ "aiooss2" ];
54
55 disabledTestPaths = [
56 # Tests require network access
57 "tests/func/test_bucket.py"
58 "tests/func/test_object.py"
59 "tests/func/test_resumable.py"
60 "tests/unit/test_adapter.py"
61 ];
62
63 meta = with lib; {
64 description = "Library for aliyun OSS (Object Storage Service)";
65 homepage = "https://github.com/karajan1001/aiooss2";
66 changelog = "https://github.com/karajan1001/aiooss2/blob/${version}/CHANGES.txt";
67 license = licenses.asl20;
68 maintainers = with maintainers; [ fab ];
69 };
70}