blob: 35e4e1883e8641bb5f932337e7854ab5d305ce4c (
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
55
56
57
58
59
60
61
|
{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
dataclasses-json,
fetchFromGitHub,
marshmallow,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
websockets,
}:
buildPythonPackage rec {
pname = "weatherflow4py";
version = "1.4.1";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "jeeftor";
repo = "weatherflow4py";
tag = "v${version}";
hash = "sha256-nHpLdzO49HhX5+gtYrgche4whs7Onzp4HeRNFwLHcVI=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
dataclasses-json
marshmallow
websockets
];
pythonRelaxDeps = [ "marshmallow" ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "weatherflow4py" ];
disabledTests = [
# KeyError
"test_convert_json_to_weather_data4"
];
meta = {
description = "Module to interact with the WeatherFlow REST API";
homepage = "https://github.com/jeeftor/weatherflow4py";
changelog = "https://github.com/jeeftor/weatherflow4py/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|