1{ 2 lib, 3 pythonOlder, 4 fetchFromGitHub, 5 buildPythonPackage, 6 pytestCheckHook, 7 setuptools, 8 pyserial, 9 openpyxl, 10}: 11 12buildPythonPackage rec { 13 pname = "pysunspec2"; 14 version = "1.3.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.5"; 18 19 src = fetchFromGitHub { 20 owner = "sunspec"; 21 repo = "pysunspec2"; 22 tag = "v${version}"; 23 hash = "sha256-a5dync6B0KA1Qus/3xfDzASirEh7yLuiUrQXB2jMVQw="; 24 fetchSubmodules = true; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 openpyxl 31 pyserial 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "sunspec2" ]; 37 38 meta = with lib; { 39 description = "Python library for interfacing with SunSpec devices"; 40 homepage = "https://github.com/sunspec/pysunspec2"; 41 changelog = "https://github.com/sunspec/pysunspec2/releases/tag/${src.tag}"; 42 license = licenses.asl20; 43 maintainers = [ lib.maintainers.cheriimoya ]; 44 }; 45}