biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / aiosyncthing / default.nix
blob59bc50e78e377218a474dac90d6c5dbd026ed834
2   lib,
3   aiohttp,
4   aioresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   expects,
8   pytest-asyncio,
9   pytest-mock,
10   pytestCheckHook,
11   yarl,
14 buildPythonPackage rec {
15   pname = "aiosyncthing";
16   version = "0.6.3";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "zhulik";
21     repo = pname;
22     rev = "v${version}";
23     hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI=";
24   };
26   propagatedBuildInputs = [
27     aiohttp
28     yarl
29   ];
31   nativeCheckInputs = [
32     aioresponses
33     expects
34     pytestCheckHook
35     pytest-asyncio
36     pytest-mock
37   ];
39   pytestFlagsArray = [ "--asyncio-mode=auto" ];
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   };