@@ -1,4 +1,10 @@
1−{ lib, buildPythonPackage, fetchPypi, pytest, pytestcov, setuptools_scm }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytestCheckHook
5+, pytest-cov
6+, setuptools_scm
7+}:
28
39buildPythonPackage rec {
410 pname = "cbor2";
@@ -10,12 +16,16 @@ buildPythonPackage rec {
1016 };
1117
1218 nativeBuildInputs = [ setuptools_scm ];
13− checkInputs = [ pytest pytestcov ];
1419
15− checkPhase = "pytest";
20+ checkInputs = [
21+ pytest-cov
22+ pytestCheckHook
23+ ];
24+
25+ pythonImportsCheck = [ "cbor2" ];
1626
1727 meta = with lib; {
18− description = "Pure Python CBOR (de)serializer with extensive tag support";
28+ description = "Python CBOR (de)serializer with extensive tag support";
1929 homepage = "https://github.com/agronholm/cbor2";
2030 license = licenses.mit;
2131 maintainers = with maintainers; [ taneb ];