1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, requests
6}:
7
8buildPythonPackage rec {
9 pname = "pyobihai";
10 version = "1.3.2";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 # GitHub release, https://github.com/dshokouhi/pyobihai/issues/10
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-zhsnJyhXlugK0nJ7FJZZcrq2VDQt1a9uCgsJAIABZ28=";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "pyobihai"
30 ];
31
32 meta = with lib; {
33 description = "Python package to interact with Obihai devices";
34 homepage = "https://github.com/dshokouhi/pyobihai";
35 license = licenses.mit;
36 maintainers = with maintainers; [ fab ];
37 };
38}