1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pandas,
7 pythonOlder,
8 numpy,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "pycatch22";
14 version = "0.4.5";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "DynamicsAndNeuralSystems";
21 repo = "pycatch22";
22 tag = "v${version}";
23 hash = "sha256-NvZrjOdC6rV4hwCuGcc2Br/VDhLwZcYpfnNvQpqU134=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 nativeCheckInputs = [
29 pandas
30 numpy
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "pycatch22" ];
35
36 meta = {
37 description = "Python implementation of catch22";
38 homepage = "https://github.com/DynamicsAndNeuralSystems/pycatch22";
39 changelog = "https://github.com/DynamicsAndNeuralSystems/pycatch22/releases/tag/v${version}";
40 license = lib.licenses.gpl3Plus;
41 maintainers = with lib.maintainers; [ mbalatsko ];
42 };
43}