1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pymodbus, 7 pytestCheckHook, 8 pytest-asyncio, 9 pytest-mock, 10}: 11 12buildPythonPackage rec { 13 pname = "pystiebeleltron"; 14 version = "0.2.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "ThyMYthOS"; 19 repo = "python-stiebel-eltron"; 20 tag = "v${version}"; 21 hash = "sha256-vJo9fjtbGuWJ1JcK6u0Cnol1Ev3eobD14YjH+S256og="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ pymodbus ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytest-asyncio 31 pytest-mock 32 ]; 33 34 pythonImportsCheck = [ "pystiebeleltron" ]; 35 36 meta = { 37 description = "Python API for interacting with the Stiebel Eltron ISG web gateway via Modbus"; 38 homepage = "https://github.com/ThyMYthOS/python-stiebel-eltron"; 39 license = lib.licenses.mit; 40 maintainers = [ lib.maintainers.jamiemagee ]; 41 }; 42}