python311Packages.miauth: init at 0.9.1

Authenticate and interact with Xiaomi devices over BLE

https://github.com/dnandha/miauth
This commit is contained in:
Fabian Affolter 2023-11-26 11:46:42 +01:00
parent 09529ed951
commit b9d0453d1b
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, bluepy
, pythonOlder
, cryptography
}:
buildPythonPackage rec {
pname = "miauth";
version = "0.9.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "dnandha";
repo = "miauth";
# Release is not tagged properly, https://github.com/dnandha/miauth/issues/15
# rev = "refs/tags/${version}";
rev = "refs/tags/release";
hash = "sha256-+aoY0Eyd9y7xQTA3uSC6YIZisViilsHlFaOXmhPMcBY=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
bluepy
cryptography
];
pythonImportsCheck = [
"miauth"
];
meta = with lib; {
description = "Authenticate and interact with Xiaomi devices over BLE";
homepage = "https://github.com/dnandha/miauth";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -6665,6 +6665,8 @@ self: super: with self; {
mhcgnomes = callPackage ../development/python-modules/mhcgnomes { };
miauth = callPackage ../development/python-modules/miauth { };
micawber = callPackage ../development/python-modules/micawber { };
microdata = callPackage ../development/python-modules/microdata { };