1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 expects, 8 pytest-asyncio, 9 pytest-mock, 10 pytestCheckHook, 11 yarl, 12}: 13 14buildPythonPackage rec { 15 pname = "aiosyncthing"; 16 version = "0.6.3"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "zhulik"; 21 repo = pname; 22 rev = "v${version}"; 23 hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 yarl 29 ]; 30 31 nativeCheckInputs = [ 32 aioresponses 33 expects 34 pytestCheckHook 35 pytest-asyncio 36 pytest-mock 37 ]; 38 39 pytestFlagsArray = [ "--asyncio-mode=auto" ]; 40 41 postPatch = '' 42 substituteInPlace pyproject.toml \ 43 --replace " --cov=aiosyncthing --cov-report=html" "" 44 ''; 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 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}