summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pymeteireann/default.nix
blob: 444582f52405f247b5f199f88f4d1e851c342937 (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
{
  lib,
  setuptools,
  aiohttp,
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  pytz,
  xmltodict,
}:

buildPythonPackage rec {
  pname = "pymeteireann";
  version = "2024.11.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "DylanGore";
    repo = "PyMetEireann";
    tag = version;
    sha256 = "sha256-b59I2h9A3QoXEBUYhbR0vsGGpQpOvFrqhHZnVCS8fLo=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    xmltodict
    aiohttp
    async-timeout
    pytz
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "meteireann" ];

  meta = {
    description = "Python module to communicate with the Met Éireann Public Weather Forecast API";
    homepage = "https://github.com/DylanGore/PyMetEireann/";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}