summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyweatherflowrest/default.nix
blob: 9fd0a1379a21037cfd8bfff06dee4f224a521572 (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
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyweatherflowrest";
  version = "1.0.11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "briis";
    repo = "pyweatherflowrest";
    tag = "v${version}";
    hash = "sha256-l1V3HgzqnnoY6sWHwfgBtcIR782RwKhekY2qOLrUMNY=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  # Module has no tests. test.py is a demo script
  doCheck = false;

  pythonImportsCheck = [ "pyweatherflowrest" ];

  meta = {
    description = "Python module to get data from WeatherFlow Weather Stations";
    homepage = "https://github.com/briis/pyweatherflowrest";
    changelog = "https://github.com/briis/pyweatherflowrest/blob/v${version}/CHANGELOG.md";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}