1{ 2 lib, 3 bleak, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "aranet4"; 14 version = "2.3.4"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "Anrijs"; 21 repo = "Aranet4-Python"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-Ni6qbt1eXeV/PS/1l0DaSSob7f0Gh4nYQThCHTYB7yI="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 bleak 30 requests 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "aranet4" ]; 36 37 disabledTests = [ 38 # Test compares rendered output 39 "test_current_values" 40 ]; 41 42 meta = with lib; { 43 description = "Module to interact with Aranet4 devices"; 44 homepage = "https://github.com/Anrijs/Aranet4-Python"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ fab ]; 47 mainProgram = "aranetctl"; 48 }; 49}