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