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