From 36373dd55b88b1c48fdaa038405515c15c28e5b3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Jan 2021 21:30:03 +0100 Subject: python3Packages.cbor2: switch to pytestCheckHook --- pkgs/development/python-modules/cbor2/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cbor2/default.nix b/pkgs/development/python-modules/cbor2/default.nix index 08503297d1f73..8dcedac421258 100644 --- a/pkgs/development/python-modules/cbor2/default.nix +++ b/pkgs/development/python-modules/cbor2/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, pytestcov, setuptools_scm }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pytest-cov +, setuptools_scm +}: buildPythonPackage rec { pname = "cbor2"; @@ -10,12 +16,16 @@ buildPythonPackage rec { }; nativeBuildInputs = [ setuptools_scm ]; - checkInputs = [ pytest pytestcov ]; - checkPhase = "pytest"; + checkInputs = [ + pytest-cov + pytestCheckHook + ]; + + pythonImportsCheck = [ "cbor2" ]; meta = with lib; { - description = "Pure Python CBOR (de)serializer with extensive tag support"; + description = "Python CBOR (de)serializer with extensive tag support"; homepage = "https://github.com/agronholm/cbor2"; license = licenses.mit; maintainers = with maintainers; [ taneb ]; -- cgit 1.4.1