nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 bleak,
4 bleak-retry-connector,
5 buildPythonPackage,
6 cryptography,
7 fetchPypi,
8 poetry-core,
9}:
10
11buildPythonPackage rec {
12 pname = "eufylife-ble-client";
13 version = "0.1.10";
14 pyproject = true;
15
16 src = fetchPypi {
17 pname = "eufylife_ble_client";
18 inherit version;
19 hash = "sha256-hfUsFifkwr5qhYM6Otlxo4AAGu967p/eWCR+yBrC4eM=";
20 };
21
22 nativeBuildInputs = [ poetry-core ];
23
24 propagatedBuildInputs = [
25 bleak
26 bleak-retry-connector
27 cryptography
28 ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "eufylife_ble_client" ];
34
35 meta = {
36 description = "Module for parsing data from Eufy smart scales";
37 homepage = "https://github.com/bdr99/eufylife-ble-client";
38 license = with lib.licenses; [ mit ];
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}