summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hass-splunk/default.nix
blob: a336bac3a42a36e069035d1d3de59f9818357f02 (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,
  setuptools,
  aiohttp,
}:

buildPythonPackage rec {
  pname = "hass-splunk";
  version = "0.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Bre77";
    repo = "hass_splunk";
    tag = "v${version}";
    hash = "sha256-bgF6gHAA57MiWdmpwilGa+l05/ETKdpyi2naVagkRlc=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  pythonImportsCheck = [ "hass_splunk" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    description = "Async single threaded connector to Splunk HEC using an asyncio session";
    homepage = "https://github.com/Bre77/hass_splunk";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}