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