From 8b8c09ac7633f3cc4cd130e33a3bc9e6d667c305 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 16 Apr 2023 04:20:00 +0000 Subject: [PATCH] python310Packages.palettable: use pytestCheckHook --- .../python-modules/palettable/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/palettable/default.nix b/pkgs/development/python-modules/palettable/default.nix index 598d8030a0a5..ad2519178f9b 100644 --- a/pkgs/development/python-modules/palettable/default.nix +++ b/pkgs/development/python-modules/palettable/default.nix @@ -1,19 +1,29 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +}: buildPythonPackage rec { pname = "palettable"; version = "3.3.2"; + format = "setuptools"; + src = fetchPypi { inherit pname version; sha256 = "sha256-aoZ8Qlov8ojqtDVr7ewA3gBt7jbJmmFHwuGwXeeJrJ8="; }; - nativeCheckInputs = [ pytest ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - checkPhase = '' - pytest - ''; + pythonImportsCheck = [ + "palettable" + "palettable.matplotlib" + "palettable.tableau" + ]; meta = with lib; { description = "A library of color palettes";