evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / aiooss2 / default.nix
blob7d1e235949e702e0d0050a3772d7b78c10068e3e
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,
16 buildPythonPackage rec {
17   pname = "aiooss2";
18   version = "0.2.11";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "karajan1001";
25     repo = "aiooss2";
26     rev = "refs/tags/${version}";
27     hash = "sha256-6tkJG6Jjvo2OaN9cRbs/7ApcrKiZ5tGSPUfugAx7iJU=";
28   };
30   pythonRelaxDeps = [
31     "aiohttp"
32     "oss2"
33   ];
35   build-system = [
36     setuptools
37     setuptools-scm
38   ];
41   dependencies = [
42     aiohttp
43     oss2
44   ];
46   nativeCheckInputs = [
47     pytest-mock
48     pytest-asyncio
49     pytestCheckHook
50     requests
51   ];
53   pythonImportsCheck = [ "aiooss2" ];
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   ];
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   };