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