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.0";
26 pyproject = true;
27
28 disabled = pythonOlder "3.11";
29
30 src = fetchFromGitHub {
31 owner = "timmo001";
32 repo = "aioazuredevops";
33 rev = "refs/tags/${version}";
34 hash = "sha256-1v58I9WOyyrp9n+qdvVeMZ3EObqP/06XCOZYS0nEvPU=";
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 pythonImportsCheck = [
57 "aioazuredevops.client"
58 "aioazuredevops.core"
59 ];
60
61 meta = with lib; {
62 changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}";
63 description = "Get data from the Azure DevOps API";
64 mainProgram = "aioazuredevops";
65 homepage = "https://github.com/timmo001/aioazuredevops";
66 license = licenses.mit;
67 maintainers = with maintainers; [ dotlambda ];
68 };
69}