1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytz,
8 xmltodict,
9}:
10
11buildPythonPackage rec {
12 pname = "pymeteireann";
13 version = "2021.8.0";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "DylanGore";
18 repo = "PyMetEireann";
19 rev = version;
20 sha256 = "1xcfb3f2a2q99i8anpdzq8s743jgkk2a3rpar48b2dhs7l15rbsd";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 async-timeout
26 pytz
27 xmltodict
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "meteireann" ];
34
35 meta = with lib; {
36 description = "Python module to communicate with the Met Éireann Public Weather Forecast API";
37 homepage = "https://github.com/DylanGore/PyMetEireann/";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}