summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/igloohome-api/default.nix
blob: 18b82b492eaea12c3ef7c1eab87e55cd1812d5cb (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
{
  aiohttp,
  buildPythonPackage,
  dacite,
  fetchFromGitHub,
  hatchling,
  lib,
  pyjwt,
}:

buildPythonPackage rec {
  pname = "igloohome-api";
  version = "0.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "keithle888";
    repo = "igloohome-api";
    tag = "v${version}";
    hash = "sha256-BLmmypbvYTgQisT0+9Ym1ZTK6asAP2tWXP2DWhKYM7U=";
  };

  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    dacite
    pyjwt
  ];

  pythonImportsCheck = [ "igloohome_api" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    changelog = "https://github.com/keithle888/igloohome-api/releases/tag/${src.tag}";
    description = "Python package for using igloohome's API";
    homepage = "https://github.com/keithle888/igloohome-api";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}