about summary refs log tree commit diff
path: root/pkgs/development/python-modules/eufylife-ble-client
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-03-08 00:06:34 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2023-03-08 00:13:26 +0100
commitcad0a950fb2ec6e44565fb77c17674757cfddf8e (patch)
tree50b597b659b0adbe5a99b165ed62419fd9955cbd /pkgs/development/python-modules/eufylife-ble-client
parent9f0034b1dd2cbb5cbd71418ab18c256cf99dd705 (diff)
python310Packages.eufylife-ble-client: init at 0.1.7
Diffstat (limited to 'pkgs/development/python-modules/eufylife-ble-client')
-rw-r--r--pkgs/development/python-modules/eufylife-ble-client/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/eufylife-ble-client/default.nix b/pkgs/development/python-modules/eufylife-ble-client/default.nix
new file mode 100644
index 0000000000000..a3a228682f735
--- /dev/null
+++ b/pkgs/development/python-modules/eufylife-ble-client/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, bleak
+, bleak-retry-connector
+, buildPythonPackage
+, cryptography
+, fetchPypi
+, poetry-core
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "eufylife-ble-client";
+  version = "0.1.7";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.9";
+
+  src = fetchPypi {
+    pname = "eufylife_ble_client";
+    inherit version;
+    hash = "sha256-Vt9hHUVAM0d+BcotPUD9v8jXrcg7lEDVChLENUHd3rY=";
+  };
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = [
+    bleak
+    bleak-retry-connector
+    cryptography
+  ];
+
+  # Module has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "eufylife_ble_client"
+  ];
+
+  meta = with lib; {
+    description = "Module for parsing data from Eufy smart scales";
+    homepage = "https://github.com/bdr99/eufylife-ble-client";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}