summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/xs1-api-client/default.nix
blob: 5561e44abb921c9f9358a887ab65a883462e7b84 (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,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  requests,
  urllib3,
}:

buildPythonPackage rec {
  pname = "xs1-api-client";
  version = "3.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "markusressel";
    repo = "xs1-api-client";
    tag = "v${version}";
    hash = "sha256-bAxrqtjoJaPkTzeeOeXSTpJN3rPszi5W4q6Q7ZRo0hc=";
  };

  build-system = [ setuptools ];

  dependencies = [
    requests
    urllib3
  ];

  pythonImportsCheck = [ "xs1_api_client" ];

  meta = {
    description = "Python library for accessing actuator and sensor data on the EZcontrol XS1 Gateway";
    homepage = "https://github.com/markusressel/xs1-api-client";
    license = lib.licenses.gpl3Plus;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}