at master 1.3 kB view raw
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 tag = 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 dependencies = [ 41 aiohttp 42 oss2 43 ]; 44 45 nativeCheckInputs = [ 46 pytest-mock 47 pytest-asyncio 48 pytestCheckHook 49 requests 50 ]; 51 52 pythonImportsCheck = [ "aiooss2" ]; 53 54 disabledTestPaths = [ 55 # Tests require network access 56 "tests/func/test_bucket.py" 57 "tests/func/test_object.py" 58 "tests/func/test_resumable.py" 59 "tests/unit/test_adapter.py" 60 ]; 61 62 meta = with lib; { 63 description = "Library for aliyun OSS (Object Storage Service)"; 64 homepage = "https://github.com/karajan1001/aiooss2"; 65 changelog = "https://github.com/karajan1001/aiooss2/blob/${version}/CHANGES.txt"; 66 license = licenses.asl20; 67 maintainers = with maintainers; [ fab ]; 68 }; 69}