summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyevilgenius/default.nix
blob: f05541dcf260537d94121b968673d1c3626a0710 (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
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  async-timeout,
}:

buildPythonPackage rec {
  pname = "pyevilgenius";
  version = "2.0.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "home-assistant-libs";
    repo = "pyevilgenius";
    rev = version;
    hash = "sha256-wjC32oq/lW3Z4XB+4SILRKIOuCgBKk1gruOo4uc/4/o=";
  };

  propagatedBuildInputs = [
    aiohttp
    async-timeout
  ];

  # Project has no test
  doCheck = false;

  pythonImportsCheck = [ "pyevilgenius" ];

  meta = {
    description = "Python SDK to interact with Evil Genius Labs devices";
    homepage = "https://github.com/home-assistant-libs/pyevilgenius";
    changelog = "https://github.com/home-assistant-libs/pyevilgenius/releases/tag/${version}";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}