1{
2 lib,
3 aiohttp,
4 aresponses,
5 async-timeout,
6 buildPythonPackage,
7 fetchFromGitHub,
8 poetry-core,
9 pytest-asyncio,
10 pytest-cov-stub,
11 pytestCheckHook,
12 pythonOlder,
13}:
14
15buildPythonPackage rec {
16 pname = "zamg";
17 version = "0.3.6";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "killer0071234";
24 repo = "python-zamg";
25 tag = "v${version}";
26 hash = "sha256-j864+3c0GDDftdLqLDD0hizT54c0IgTjT77jOneXlq0=";
27 };
28
29 pythonRelaxDeps = [ "async-timeout" ];
30
31 build-system = [ poetry-core ];
32
33 dependencies = [
34 aiohttp
35 async-timeout
36 ];
37
38 nativeCheckInputs = [
39 aresponses
40 pytest-asyncio
41 pytest-cov-stub
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "zamg" ];
46
47 disabledTests = [
48 # Tests are outdated
49 "test_update_fail_3"
50 "test_properties_fail_2"
51 ];
52
53 meta = with lib; {
54 description = "Library to read weather data from ZAMG Austria";
55 homepage = "https://github.com/killer0071234/python-zamg";
56 changelog = "https://github.com/killer0071234/python-zamg/releases/tag/v${version}";
57 license = licenses.mit;
58 maintainers = with maintainers; [ fab ];
59 };
60}