567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
876 B
Nix
45 lines
876 B
Nix
{
|
|
lib,
|
|
bleak,
|
|
bleak-retry-connector,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchPypi,
|
|
poetry-core,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eufylife-ble-client";
|
|
version = "0.1.10";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
pname = "eufylife_ble_client";
|
|
inherit version;
|
|
hash = "sha256-hfUsFifkwr5qhYM6Otlxo4AAGu967p/eWCR+yBrC4eM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
bleak
|
|
bleak-retry-connector
|
|
cryptography
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "eufylife_ble_client" ];
|
|
|
|
meta = {
|
|
description = "Module for parsing data from Eufy smart scales";
|
|
homepage = "https://github.com/bdr99/eufylife-ble-client";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|