ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / aiosyncthing / default.nix
blob624c86fb314b55c68b8d08e2941170e36f20849c
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , expects
7 , pytest-asyncio
8 , pytest-mock
9 , pytestCheckHook
10 , yarl
13 buildPythonPackage rec {
14   pname = "aiosyncthing";
15   version = "0.6.3";
17   src = fetchFromGitHub {
18     owner = "zhulik";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI=";
22   };
24   propagatedBuildInputs = [
25     aiohttp
26     yarl
27   ];
29   checkInputs = [
30     aioresponses
31     expects
32     pytestCheckHook
33     pytest-asyncio
34     pytest-mock
35   ];
37   pytestFlagsArray = [
38     "--asyncio-mode=legacy"
39   ];
41   postPatch = ''
42     substituteInPlace pyproject.toml \
43       --replace " --cov=aiosyncthing --cov-report=html" ""
44   '';
46   pythonImportsCheck = [ "aiosyncthing" ];
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   };