1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 async-timeout,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pyevilgenius";
12 version = "2.0.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "home-assistant-libs";
19 repo = "pyevilgenius";
20 rev = version;
21 hash = "sha256-wjC32oq/lW3Z4XB+4SILRKIOuCgBKk1gruOo4uc/4/o=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 async-timeout
27 ];
28
29 # Project has no test
30 doCheck = false;
31
32 pythonImportsCheck = [ "pyevilgenius" ];
33
34 meta = with lib; {
35 description = "Python SDK to interact with Evil Genius Labs devices";
36 homepage = "https://github.com/home-assistant-libs/pyevilgenius";
37 changelog = "https://github.com/home-assistant-libs/pyevilgenius/releases/tag/${version}";
38 license = with licenses; [ asl20 ];
39 maintainers = with maintainers; [ fab ];
40 };
41}