1{ lib 2, buildPythonPackage 3, defusedxml 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "pyobihai"; 12 version = "1.4.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "ejpenney"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-tDPu/ceH7+7AnxokADDfl+G56B0+ri8RxXxXEyWa61Q="; 22 }; 23 24 propagatedBuildInputs = [ 25 defusedxml 26 requests 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "pyobihai" 35 ]; 36 37 meta = with lib; { 38 description = "Module to interact with Obihai devices"; 39 homepage = "https://github.com/ejpenney/pyobihai"; 40 changelog = "https://github.com/ejpenney/pyobihai/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}