nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pydevccu
6, pytest-aiohttp
7, pytestCheckHook
8, python-slugify
9, pythonOlder
10, voluptuous
11, websocket-client
12, xmltodict
13}:
14
15buildPythonPackage rec {
16 pname = "hahomematic";
17 version = "1.4.0";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "danielperna84";
24 repo = pname;
25 rev = "refs/tags/${version}";
26 sha256 = "sha256-1JYakfs+lLCfB2Ann1QfNw+MBrB9PiixOUqdA7UgbWE=";
27 };
28
29 propagatedBuildInputs = [
30 aiohttp
31 python-slugify
32 voluptuous
33 ];
34
35 checkInputs = [
36 pydevccu
37 pytest-aiohttp
38 pytestCheckHook
39 ];
40
41 # Starting with 0.30 the tests are broken, check with the next major release
42 doCheck = false;
43
44 pythonImportsCheck = [
45 "hahomematic"
46 ];
47
48 meta = with lib; {
49 description = "Python module to interact with HomeMatic devices";
50 homepage = "https://github.com/danielperna84/hahomematic";
51 license = with licenses; [ mit ];
52 maintainers = with maintainers; [ fab ];
53 };
54}