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