python311Packages.miauth: 0.9.1 -> 0.9.7

This commit is contained in:
Martin Weinelt 2024-01-17 00:12:20 +01:00
parent 35ff104e60
commit f770415172
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pythonOlder
, pythonRelaxDepsHook
@ -15,20 +15,16 @@
, pytestCheckHook
}:
buildPythonPackage {
buildPythonPackage rec {
pname = "miauth";
version = "0.9.1";
version = "0.9.7";
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=";
src = fetchPypi {
inherit pname version;
hash = "sha256-2/4nFInpdY8fb/b+sXhgT6ZPtEgBV+KHMyLnxIp6y/U=";
};
nativeBuildInputs = [
@ -45,12 +41,14 @@ buildPythonPackage {
cryptography
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"miauth"
];
doCheck = false; # no tests
meta = with lib; {
description = "Authenticate and interact with Xiaomi devices over BLE";
homepage = "https://github.com/dnandha/miauth";