Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, orjson 6, pydevccu 7, pytest-aiohttp 8, pytestCheckHook 9, python-slugify 10, pythonOlder 11, setuptools 12, voluptuous 13, websocket-client 14, xmltodict 15}: 16 17buildPythonPackage rec { 18 pname = "hahomematic"; 19 version = "2023.6.0"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.9"; 23 24 src = fetchFromGitHub { 25 owner = "danielperna84"; 26 repo = pname; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-xpkQSQGwf4RZHKwLdrOLW4yzECKY1vwxHYo+o3eOrhE="; 29 }; 30 31 nativeBuildInputs = [ 32 setuptools 33 ]; 34 35 propagatedBuildInputs = [ 36 aiohttp 37 orjson 38 python-slugify 39 voluptuous 40 ]; 41 42 nativeCheckInputs = [ 43 pydevccu 44 pytest-aiohttp 45 pytestCheckHook 46 ]; 47 48 # Starting with 0.30 the tests are broken, check with the next major release 49 doCheck = false; 50 51 pythonImportsCheck = [ 52 "hahomematic" 53 ]; 54 55 meta = with lib; { 56 description = "Python module to interact with HomeMatic devices"; 57 homepage = "https://github.com/danielperna84/hahomematic"; 58 changelog = "https://github.com/danielperna84/hahomematic/releases/tag/${version}"; 59 license = with licenses; [ mit ]; 60 maintainers = with maintainers; [ fab ]; 61 }; 62}