1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{
lib,
buildPythonPackage,
cmake,
fetchFromGitHub,
joblib,
matplotlib,
ninja,
numpy,
pandas,
pathspec,
pyproject-metadata,
pybind11,
pytestCheckHook,
scikit-build-core,
scipy,
}:
buildPythonPackage rec {
pname = "phik";
version = "0.12.5";
pyproject = true;
src = fetchFromGitHub {
owner = "KaveIO";
repo = "PhiK";
tag = "v${version}";
hash = "sha256-/Zzin3IHwlFEDQwKjzTwY4ET2r0k3Ne/2lGzXkur9p8=";
};
build-system = [
cmake
ninja
pathspec
pybind11
pyproject-metadata
scikit-build-core
];
dependencies = [
joblib
matplotlib
numpy
pandas
scipy
];
nativeCheckInputs = [ pytestCheckHook ];
# Uses scikit-build-core to drive build process
dontUseCmakeConfigure = true;
pythonImportsCheck = [ "phik" ];
preCheck = ''
# import from $out
rm -r phik
'';
disabledTests = [
# AssertionError: np.False_ is not true
"test_phik_calculation"
];
meta = {
description = "Phi_K correlation analyzer library";
longDescription = ''
Phi_K is a new and practical correlation coefficient based on several refinements to
Pearson’s hypothesis test of independence of two variables.
'';
homepage = "https://phik.readthedocs.io/";
changelog = "https://github.com/KaveIO/PhiK/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ melsigl ];
};
}
|