1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 responses, 10}: 11 12buildPythonPackage rec { 13 pname = "pywaterkotte"; 14 version = "0.1.2"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "chboland"; 21 repo = "pywaterkotte"; 22 tag = "v${version}"; 23 hash = "sha256-zK0x6LyXPPNPA20Zq+S1B1q7ZWGxQmWf4JxEfjNkPQw="; 24 }; 25 26 nativeBuildInputs = [ hatchling ]; 27 28 propagatedBuildInputs = [ requests ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 responses 33 ]; 34 35 pythonImportsCheck = [ "pywaterkotte" ]; 36 37 meta = with lib; { 38 description = "Library to communicate with Waterkotte heatpumps"; 39 homepage = "https://github.com/chboland/pywaterkotte"; 40 changelog = "https://github.com/chboland/pywaterkotte/releases/tag/v${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}