1{ 2 lib, 3 asyncio-dgram, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatchling, 7 ifaddr, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "keba-kecontact"; 14 version = "4.3.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "dannerph"; 21 repo = "keba-kecontact"; 22 tag = version; 23 hash = "sha256-gIqHo+J/I4vqJCs/r3ZHo3kChefTRqpVmdw3r3y3Hzk="; 24 }; 25 26 build-system = [ hatchling ]; 27 28 dependencies = [ 29 asyncio-dgram 30 ifaddr 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "keba_kecontact" ]; 36 37 meta = with lib; { 38 description = "Python library for controlling KEBA charging stations"; 39 homepage = "https://github.com/dannerph/keba-kecontact"; 40 changelog = "https://github.com/dannerph/keba-kecontact/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}