From 6180d22daa4e48a0080ba386ea0a023d952276f6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 16 Jul 2022 12:59:11 +0200 Subject: [PATCH] python3Packages.hap-python: 4.4.0 -> 4.5.0 --- .../python-modules/hap-python/default.nix | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/hap-python/default.nix b/pkgs/development/python-modules/hap-python/default.nix index 63a2e941f0fa..6756aae4d372 100644 --- a/pkgs/development/python-modules/hap-python/default.nix +++ b/pkgs/development/python-modules/hap-python/default.nix @@ -1,11 +1,11 @@ { lib , buildPythonPackage , base36 +, chacha20poly1305-reuseable , cryptography -, curve25519-donna -, ecdsa , fetchFromGitHub , h11 +, orjson , pyqrcode , pytest-asyncio , pytest-timeout @@ -16,31 +16,36 @@ buildPythonPackage rec { pname = "hap-python"; - version = "4.4.0"; + version = "4.5.0"; + format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "ikalchev"; repo = "HAP-python"; - rev = "v${version}"; - sha256 = "sha256-dSiI2W4U4FYwMRBInpxb/wkQLKxPzLHIkLPNgiZEhUA="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-/XJvCL9hMIrOUwGPcrvSrJ6SZ/E6BQy+isFFlAniIM4="; }; propagatedBuildInputs = [ - base36 + chacha20poly1305-reuseable cryptography - curve25519-donna - ecdsa h11 - pyqrcode + orjson zeroconf ]; + passthru.optional-dependencies.QRCode = [ + base36 + pyqrcode + ]; + checkInputs = [ pytest-asyncio pytest-timeout pytestCheckHook - ]; + ] + ++ passthru.optional-dependencies.QRCode; disabledTestPaths = [ # Disable tests requiring network access