1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, expects
7, pytest-asyncio
8, pytest-mock
9, pytestCheckHook
10, yarl
11}:
12
13buildPythonPackage rec {
14 pname = "aiosyncthing";
15 version = "0.5.1";
16
17 src = fetchFromGitHub {
18 owner = "zhulik";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "0704qbg3jy80vaw3bcvhy988s1qs3fahpfwkja71fy70bh0vc860";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 yarl
27 ];
28
29 checkInputs = [
30 aioresponses
31 expects
32 pytestCheckHook
33 pytest-asyncio
34 pytest-mock
35 ];
36
37 pythonImportsCheck = [ "aiosyncthing" ];
38
39 meta = with lib; {
40 description = "Python client for the Syncthing REST API";
41 homepage = "https://github.com/zhulik/aiosyncthing";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}