1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 expects,
8 pytest-asyncio,
9 pytest-cov-stub,
10 pytest-mock,
11 pytestCheckHook,
12 setuptools,
13 yarl,
14}:
15
16buildPythonPackage rec {
17 pname = "aiosyncthing";
18 version = "0.6.3";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "zhulik";
23 repo = "aiosyncthing";
24 tag = "v${version}";
25 hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 aiohttp
32 yarl
33 ];
34
35 nativeCheckInputs = [
36 aioresponses
37 expects
38 pytestCheckHook
39 pytest-cov-stub
40 pytest-asyncio
41 pytest-mock
42 ];
43
44 pytestFlags = [ "--asyncio-mode=auto" ];
45
46 pythonImportsCheck = [ "aiosyncthing" ];
47
48 meta = with lib; {
49 description = "Python client for the Syncthing REST API";
50 homepage = "https://github.com/zhulik/aiosyncthing";
51 changelog = "https://github.com/zhulik/aiosyncthing/releases/tag/v${version}";
52 license = licenses.mit;
53 maintainers = with maintainers; [ fab ];
54 };
55}