From 19adc3341cf3adfdbd408646aedbf8e62ce3eece Mon Sep 17 00:00:00 2001 From: Winter Date: Sat, 6 Aug 2022 12:32:04 -0400 Subject: treewide: migrate to pythonPackages.unittestCheckHook --- pkgs/development/python-modules/python-snappy/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pkgs/development/python-modules/python-snappy') diff --git a/pkgs/development/python-modules/python-snappy/default.nix b/pkgs/development/python-modules/python-snappy/default.nix index 397fcaa3dd0d..d75c80d5e415 100644 --- a/pkgs/development/python-modules/python-snappy/default.nix +++ b/pkgs/development/python-modules/python-snappy/default.nix @@ -4,7 +4,7 @@ , isPyPy , snappy , cffi -, python +, unittestCheckHook }: buildPythonPackage rec { @@ -21,11 +21,7 @@ buildPythonPackage rec { propagatedBuildInputs = lib.optional isPyPy cffi; - checkPhase = '' - runHook preCheck - ${python.interpreter} -m unittest discover - runHook postCheck - ''; + checkInputs = [ unittestCheckHook ]; meta = with lib; { description = "Python library for the snappy compression library from Google"; -- cgit v1.2.3