From 70e8dbcb1d3f5797963e2ab784267ba53ecb2364 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 30 Dec 2020 16:16:20 +0100 Subject: [PATCH] python3Packages.denonavr: 0.9.3 -> 0.9.9 Disable on Python 2.7, convert tests to pytestCheckHook. --- .../python-modules/denonavr/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/denonavr/default.nix b/pkgs/development/python-modules/denonavr/default.nix index 58099a98bdc..3d047213f7f 100644 --- a/pkgs/development/python-modules/denonavr/default.nix +++ b/pkgs/development/python-modules/denonavr/default.nix @@ -1,24 +1,28 @@ { lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces -, pytest, testtools, requests-mock }: +, pytestCheckHook, testtools, requests-mock }: buildPythonPackage rec { pname = "denonavr"; - version = "0.9.3"; + version = "0.9.9"; + disabled = isPy27; src = fetchFromGitHub { owner = "scarface-4711"; repo = "denonavr"; rev = version; - sha256 = "0s8v918n6xn44r2mrq5hqbf0znpz64clq7a1jakkgz9py8bi6vnn"; + sha256 = "08zh8rdadmxcgr707if6g5k5j2xz21s6jrn4kxh1c7xqpgdfggd9"; }; - propagatedBuildInputs = [ requests netifaces ]; + propagatedBuildInputs = [ + requests + netifaces + ]; - doCheck = !isPy27; - checkInputs = [ pytest testtools requests-mock ]; - checkPhase = '' - pytest tests - ''; + checkInputs = [ + pytestCheckHook + testtools + requests-mock + ]; meta = with lib; { homepage = "https://github.com/scarface-4711/denonavr";