From 537b11289a2c2c26675c8ef168cf6873560e1e2d Mon Sep 17 00:00:00 2001 From: Pyrox Date: Fri, 2 Aug 2024 23:16:57 -0400 Subject: [PATCH] python312Packages.python-nvd3: migrate from `setup.py test` --- pkgs/development/python-modules/python-nvd3/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/python-nvd3/default.nix b/pkgs/development/python-modules/python-nvd3/default.nix index a293ee90d157..df05468d009b 100644 --- a/pkgs/development/python-modules/python-nvd3/default.nix +++ b/pkgs/development/python-modules/python-nvd3/default.nix @@ -5,7 +5,7 @@ python-slugify, jinja2, setuptools, - coverage, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,11 +25,10 @@ buildPythonPackage rec { jinja2 setuptools ]; - nativeCheckInputs = [ coverage ]; - checkPhase = '' - coverage run --source=nvd3 setup.py test - ''; + nativeCheckInputs = [ pytestCheckHook ]; + + pytestFlagsArray = [ "tests.py" ]; meta = with lib; { homepage = "https://github.com/areski/python-nvd3";