summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aemet-opendata/default.nix
blob: 2ef3e4997a9708bf3a80e28e367e3a8c7da5b15d (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
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  geopy,
  setuptools,
}:

buildPythonPackage rec {
  pname = "aemet-opendata";
  version = "0.6.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Noltari";
    repo = "AEMET-OpenData";
    tag = version;
    hash = "sha256-xxpB5JFPkTwd7dxba9pXRvcont/i3wXBdJh5NfLnZTM=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    geopy
  ];

  # no tests implemented
  doCheck = false;

  pythonImportsCheck = [ "aemet_opendata.interface" ];

  meta = {
    description = "Python client for AEMET OpenData Rest API";
    homepage = "https://github.com/Noltari/AEMET-OpenData";
    changelog = "https://github.com/Noltari/AEMET-OpenData/releases/tag/${version}";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}