python3Packages.cbor2: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-01-15 21:30:03 +01:00 committed by Jonathan Ringer
parent 8e4690c0ca
commit 36373dd55b
1 changed files with 14 additions and 4 deletions

View File

@ -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 ];