1{ lib 2, bleak 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "aranet4"; 12 version = "2.2.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "Anrijs"; 19 repo = "Aranet4-Python"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-HiveHkGQUCvG4aqK2HSCbONObidT7yof4LzKSJPEOKU="; 22 }; 23 24 propagatedBuildInputs = [ 25 bleak 26 requests 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "aranet4" 35 ]; 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 }; 48}