From ca6ecf0c669b633a31edc015b477bd877ce20960 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 29 Nov 2023 01:23:29 +0100 Subject: [PATCH] python311Packages.miauth: fix build Relaxes the dependency on cryptography. Disables the check phase. --- .../python-modules/miauth/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/miauth/default.nix b/pkgs/development/python-modules/miauth/default.nix index 380fe8e23e1f..a48690ab0b07 100644 --- a/pkgs/development/python-modules/miauth/default.nix +++ b/pkgs/development/python-modules/miauth/default.nix @@ -1,14 +1,21 @@ { lib , buildPythonPackage , fetchFromGitHub -, setuptools -, wheel -, bluepy , pythonOlder +, pythonRelaxDepsHook + +# build-system +, setuptools + +# dependencies +, bluepy , cryptography + +# tests +, pytestCheckHook }: -buildPythonPackage rec { +buildPythonPackage { pname = "miauth"; version = "0.9.1"; pyproject = true; @@ -26,7 +33,11 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools - wheel + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "cryptography" ]; propagatedBuildInputs = [ @@ -38,6 +49,8 @@ buildPythonPackage rec { "miauth" ]; + doCheck = false; # no tests + meta = with lib; { description = "Authenticate and interact with Xiaomi devices over BLE"; homepage = "https://github.com/dnandha/miauth";