diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-15 21:30:03 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-01-15 13:25:44 -0800 |
commit | 36373dd55b88b1c48fdaa038405515c15c28e5b3 (patch) | |
tree | 15eaca2c81fe6e4def46644c7c0b26dc67a751ee | |
parent | 8e4690c0ca9c729673339b69b8e070a9df707741 (diff) |
python3Packages.cbor2: switch to pytestCheckHook
-rw-r--r-- | pkgs/development/python-modules/cbor2/default.nix | 18 |
1 files 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 ]; |