blob: ed506fc4d49dcc45c7eb6c09e67fd1416911a5d9 (
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
62
63
64
65
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
pytz,
requests,
requests-mock,
}:
buildPythonPackage rec {
pname = "meteofrance-api";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "hacf-fr";
repo = "meteofrance-api";
tag = "v${version}";
hash = "sha256-5zqmzPbzC9IUZ+y1FRh+u1gds/ZdGeRm5/ajQf8UKTQ=";
};
build-system = [ poetry-core ];
dependencies = [
pytz
requests
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "meteofrance_api" ];
disabledTests = [
# Tests require network access
"test_currentphenomenons"
"test_dictionary"
"test_forecast"
"test_full_with_coastal_bulletin"
"test_fulls"
"test_no_rain_expected"
"test_picture_of_the_day"
"test_places"
"test_rain"
"test_session"
"test_observation"
"test_workflow"
];
meta = {
description = "Module to access information from the Meteo-France API";
homepage = "https://github.com/hacf-fr/meteofrance-api";
changelog = "https://github.com/hacf-fr/meteofrance-api/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "meteofrance-api";
};
}
|