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.0.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-QEIVAcBoTvuOeLN2kfDa3uYfrUm5Qu1TLp9C0uU+mW4=";
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.builds"
58 "aioazuredevops.client"
59 "aioazuredevops.core"
60 ];
61
62 meta = with lib; {
63 changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}";
64 description = "Get data from the Azure DevOps API";
65 mainProgram = "aioazuredevops";
66 homepage = "https://github.com/timmo001/aioazuredevops";
67 license = licenses.mit;
68 maintainers = with maintainers; [ dotlambda ];
69 };
70}