diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-11-29 01:23:29 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-12-20 20:10:25 +0100 |
commit | ca6ecf0c669b633a31edc015b477bd877ce20960 (patch) | |
tree | 95de6988d357ed34e51d5b36b1eefe07436aeb4d | |
parent | 7db4bc88ac97894eba76dcba521c9a72653049ac (diff) |
python311Packages.miauth: fix build
Relaxes the dependency on cryptography. Disables the check phase.
-rw-r--r-- | pkgs/development/python-modules/miauth/default.nix | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/miauth/default.nix b/pkgs/development/python-modules/miauth/default.nix index 380fe8e23e1fc..a48690ab0b07a 100644 --- a/pkgs/development/python-modules/miauth/default.nix +++ b/pkgs/development/python-modules/miauth/default.nix @@ -1,14 +1,21 @@ { lib , buildPythonPackage , fetchFromGitHub +, pythonOlder +, pythonRelaxDepsHook + +# build-system , setuptools -, wheel + +# dependencies , bluepy -, pythonOlder , 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"; |