From ea2360d3a6e3ed37faac5ab9e172fecb1eec3557 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Oct 2021 20:05:08 +0200 Subject: [PATCH] python3Package.pyvcd: migrate to pytestCheckHook --- pkgs/development/python-modules/pyvcd/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyvcd/default.nix b/pkgs/development/python-modules/pyvcd/default.nix index 67460d44b816..464e10c33179 100644 --- a/pkgs/development/python-modules/pyvcd/default.nix +++ b/pkgs/development/python-modules/pyvcd/default.nix @@ -4,7 +4,7 @@ , pythonOlder , setuptools-scm , six -, pytest +, pytestCheckHook }: buildPythonPackage rec { @@ -18,19 +18,16 @@ buildPythonPackage rec { }; buildInputs = [ setuptools-scm ]; + propagatedBuildInputs = [ six ]; - checkPhase = '' - py.test - ''; - - checkInputs = [ pytest ]; + checkInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python package for writing Value Change Dump (VCD) files"; homepage = "https://github.com/SanDisk-Open-Source/pyvcd"; changelog = "https://github.com/SanDisk-Open-Source/pyvcd/blob/${version}/CHANGELOG.rst"; license = licenses.mit; - maintainers = [ maintainers.sb0 maintainers.emily ]; + maintainers = with maintainers; [ sb0 emily ]; }; }