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