about summary refs log tree commit diff
path: root/pkgs/development/python-modules/binho-host-adapter
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-21 19:04:43 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-21 19:04:43 +0100
commitae0ea7ed20b1cf7a9449e01a64ddbf1e6e56f062 (patch)
tree63a44ee3ea0696d5d37ee3b761f494e6c42d8b10 /pkgs/development/python-modules/binho-host-adapter
parentdd3238c002f51c2ab8fc325bf4fa330a29c64ed6 (diff)
python3Packages.binho-host-adapter: init at 0.1.6
Diffstat (limited to 'pkgs/development/python-modules/binho-host-adapter')
-rw-r--r--pkgs/development/python-modules/binho-host-adapter/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/binho-host-adapter/default.nix b/pkgs/development/python-modules/binho-host-adapter/default.nix
new file mode 100644
index 0000000000000..2249a28a5547e
--- /dev/null
+++ b/pkgs/development/python-modules/binho-host-adapter/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pyserial
+}:
+
+buildPythonPackage rec {
+  pname = "binho-host-adapter";
+  version = "0.1.6";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0mp8xa1qwaww2k5g2nqg7mcivzsbfw2ny1l9yjsi73109slafv8y";
+  };
+
+  propagatedBuildInputs = [ pyserial ];
+
+  # Project has no tests
+  doCheck = false;
+  pythonImportsCheck = [ "binhoHostAdapter" ];
+
+  meta = with lib; {
+    description = "Python library for Binho Multi-Protocol USB Host Adapters";
+    homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}