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

buildPythonPackage rec {
  pname = "neurio";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jordanh";
    repo = "neurio-python";
    tag = version;
    hash = "sha256-Kyjx+76OR3fpA9p/Zg7S4/vuGuNU2kb022BijoNMSUI=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  # Project has tests but they require actual API credentials
  doCheck = false;

  pythonImportsCheck = [ "neurio" ];

  meta = {
    description = "Neurio energy sensor and appliance automation API library";
    homepage = "https://github.com/jordanh/neurio-python";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}