blob: a26ab152e97f4d60e38eb8902ffc402664475398 (
plain)
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
|
{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aioweenect";
version = "1.1.5";
pyproject = true;
src = fetchFromGitHub {
owner = "eifinger";
repo = "aioweenect";
tag = "v${version}";
hash = "sha256-2qTjRXQdTExqY5/ckB6UrkmavzjZK/agfL9+o6fXS0M=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--asyncio-mode=auto" ""
'';
pythonRelaxDeps = [ "aiohttp" ];
build-system = [ hatchling ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aioweenect" ];
meta = {
description = "Library for the weenect API";
homepage = "https://github.com/eifinger/aioweenect";
changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|