depot/third_party/nixpkgs/pkgs/development/python-modules/eufylife-ble-client/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

47 lines
879 B
Nix

{ lib
, bleak
, bleak-retry-connector
, buildPythonPackage
, cryptography
, fetchPypi
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "eufylife-ble-client";
version = "0.1.8";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "eufylife_ble_client";
inherit version;
hash = "sha256-1pnT5B+m2/IDqHqOIZdDx8WwBdZpJe1Bj/HaxY+VW1Y=";
};
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 ];
};
}