From 56275b91ff06bb071bbad9503241e428ff87f82f Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 15 Dec 2024 18:48:29 +0800 Subject: [PATCH] python312Packages.pycatch22: fix build --- .../python-modules/pycatch22/default.nix | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/pycatch22/default.nix b/pkgs/development/python-modules/pycatch22/default.nix index 69b218ec66b05b..5d1fd6951735ab 100644 --- a/pkgs/development/python-modules/pycatch22/default.nix +++ b/pkgs/development/python-modules/pycatch22/default.nix @@ -5,6 +5,8 @@ setuptools, pandas, pythonOlder, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,25 +25,19 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ pandas ]; - - # This packages does not have real tests - # But we can run this file as smoketest - checkPhase = '' - runHook preCheck - - python tests/testing.py - - runHook postCheck - ''; + nativeCheckInputs = [ + pandas + numpy + pytestCheckHook + ]; pythonImportsCheck = [ "pycatch22" ]; - meta = with lib; { + meta = { description = "Python implementation of catch22"; homepage = "https://github.com/DynamicsAndNeuralSystems/pycatch22"; changelog = "https://github.com/DynamicsAndNeuralSystems/pycatch22/releases/tag/v${version}"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ mbalatsko ]; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ mbalatsko ]; }; }