Skip to content

Commit

Permalink
python312Packages.pycatch22: fix build
Browse files Browse the repository at this point in the history
(cherry picked from commit 2eee557)
  • Loading branch information
Bot-wxt1221 authored and github-actions[bot] committed Dec 21, 2024
1 parent 5db834e commit ee2c91f
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions pkgs/development/python-modules/pycatch22/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
setuptools,
pandas,
pythonOlder,
numpy,
pytestCheckHook,
}:

buildPythonPackage rec {
Expand All @@ -17,31 +19,25 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "DynamicsAndNeuralSystems";
repo = "pycatch22";
rev = "refs/tags/v${version}";
tag = "v${version}";
hash = "sha256-NvZrjOdC6rV4hwCuGcc2Br/VDhLwZcYpfnNvQpqU134=";
};

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 ];
};
}

0 comments on commit ee2c91f

Please sign in to comment.