summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyobihai/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pyobihai/default.nix')
-rw-r--r--pkgs/development/python-modules/pyobihai/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyobihai/default.nix b/pkgs/development/python-modules/pyobihai/default.nix
new file mode 100644
index 000000000000..79d8363372be
--- /dev/null
+++ b/pkgs/development/python-modules/pyobihai/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, requests
+}:
+
+buildPythonPackage rec {
+ pname = "pyobihai";
+ version = "1.3.1";
+ disabled = pythonOlder "3.6";
+
+ # GitHub release, https://github.com/dshokouhi/pyobihai/issues/10
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1vvf5if57dfd091a7fb5rvx63hvf0isrx28j72nj2aav1as460qp";
+ };
+
+ propagatedBuildInputs = [
+ requests
+ ];
+
+ # Project has no tests
+ doCheck = false;
+
+ pythonImportsCheck = [ "pyobihai" ];
+
+ meta = with lib; {
+ description = "Python package to interact with Obihai devices";
+ homepage = "https://github.com/dshokouhi/pyobihai";
+ license = licenses.mit;
+ maintainers = with maintainers; [ fab ];
+ };
+}