summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/energyid-webhooks/default.nix
blob: 0f7dc642410441c24f39084900a8656d7eab85c8 (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
{
  aiohttp,
  backoff,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  requests,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "energyid-webhooks";
  version = "0.0.14";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "EnergieID";
    repo = "energyid-webhooks-py";
    tag = "v${version}";
    hash = "sha256-43JfRBtRoERHYkhXjslxjohm8ypzgObRBmzbEwuzu7M=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    aiohttp
    backoff
    requests
  ];

  pythonImportsCheck = [ "energyid_webhooks" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    description = "Light weight Python package to interface with EnergyID Webhooks";
    homepage = "https://github.com/EnergieID/energyid-webhooks-py";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}