summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/irm-kmi-api/default.nix
blob: 91e32ab5969528fd67d4705f5b62020a9ddd0156 (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
47
{
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  freezegun,
  lib,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
  svgwrite,
}:

buildPythonPackage rec {
  pname = "irm-kmi-api";
  version = "1.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jdejaegh";
    repo = "irm-kmi-api";
    tag = version;
    hash = "sha256-E8lf2TpeA91mRbxXYCsuum0mJdE5XLXX0l8CKEl5SFw=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    svgwrite
  ];

  pythonImportsCheck = [ "irm_kmi_api" ];

  nativeCheckInputs = [
    freezegun
    pytest-asyncio
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/jdejaegh/irm-kmi-api/releases/tag/${src.tag}";
    description = "Retrieve data from the Belgian Royal Meteorological Institute";
    homepage = "https://github.com/jdejaegh/irm-kmi-api";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}