summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sensorpush-api/default.nix
blob: d4d9cb64784e2b4842ab7bafac723bc24fc47521 (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,
  lib,
  pydantic,
  pytestCheckHook,
  python-dateutil,
  setuptools,
  urllib3,
}:

buildPythonPackage rec {
  pname = "sensorpush-api";
  version = "2.1.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sstallion";
    repo = "sensorpush-api";
    tag = "v${version}";
    hash = "sha256-T/qROLlzgiRN4T8lwyXoD/8EtTqQY2+D8AXNKu5MeNE=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    pydantic
    python-dateutil
    urllib3
  ];

  pythonImportsCheck = [ "sensorpush_api" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/sstallion/sensorpush-api/blob/${src.tag}/CHANGELOG.md";
    description = "SensorPush Public API for Python";
    homepage = "https://github.com/sstallion/sensorpush-api";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}