1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pyserial, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "ultraheat-api"; 11 version = "0.5.7"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 pname = "ultraheat_api"; 18 inherit version; 19 hash = "sha256-rRQTjV9hyUawMaXBgUx/d6pQjM8ffjcFJE2x08Cf4Gw="; 20 }; 21 22 propagatedBuildInputs = [ pyserial ]; 23 24 # Source is not tagged, only PyPI releases 25 doCheck = false; 26 27 pythonImportsCheck = [ "ultraheat_api" ]; 28 29 meta = with lib; { 30 description = "Module for working with data from Landis+Gyr Ultraheat heat meter unit"; 31 homepage = "https://github.com/vpathuis/uh50"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}