summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sensorpush-ha/default.nix
blob: 647104ee4aea6d45bed88d9d61adeb3ffe8fb3d1 (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
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pydantic,
  sensorpush-api,
  setuptools,
}:

buildPythonPackage rec {
  pname = "sensorpush-ha";
  version = "1.3.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sstallion";
    repo = "sensorpush-ha";
    tag = "v${version}";
    hash = "sha256-Gs6WprGscr9fiu78S0OY6624LA87Of7OWkNNnaWIxJk=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pydantic
    sensorpush-api
  ];

  pythonImportsCheck = [ "sensorpush_ha" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    changelog = "https://github.com/sstallion/sensorpush-ha/blob/${src.tag}/CHANGELOG.md";
    description = "SensorPush Cloud Home Assistant Library";
    homepage = "https://github.com/sstallion/sensorpush-ha";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}