1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 aiohttp, 12 incremental, 13 14 # tests 15 aioresponses, 16 pytest-aiohttp, 17 pytest-asyncio, 18 pytest-socket, 19 pytestCheckHook, 20 syrupy, 21}: 22 23buildPythonPackage rec { 24 pname = "aioazuredevops"; 25 version = "2.2.2"; 26 pyproject = true; 27 28 disabled = pythonOlder "3.12"; 29 30 src = fetchFromGitHub { 31 owner = "timmo001"; 32 repo = "aioazuredevops"; 33 tag = version; 34 hash = "sha256-0KQHL9DmNeRvEs51XPcncxNzXb+SqYM5xPDvOdKSQMI="; 35 }; 36 37 build-system = [ 38 incremental 39 setuptools 40 ]; 41 42 dependencies = [ 43 aiohttp 44 incremental 45 ]; 46 47 nativeCheckInputs = [ 48 aioresponses 49 pytest-aiohttp 50 pytest-asyncio 51 pytest-socket 52 pytestCheckHook 53 syrupy 54 ]; 55 56 disabledTests = [ 57 # https://github.com/timmo001/aioazuredevops/issues/44 58 "test_get_project" 59 "test_get_builds" 60 "test_get_build" 61 ]; 62 63 disabledTestPaths = [ 64 # https://github.com/timmo001/aioazuredevops/commit/d6278d92937dd47de272ac6371b2d007067763c3 65 "tests/test__version.py" 66 ]; 67 68 pytestFlags = [ "--snapshot-update" ]; 69 70 pythonImportsCheck = [ "aioazuredevops" ]; 71 72 meta = with lib; { 73 changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}"; 74 description = "Get data from the Azure DevOps API"; 75 homepage = "https://github.com/timmo001/aioazuredevops"; 76 license = licenses.mit; 77 maintainers = with maintainers; [ dotlambda ]; 78 }; 79}