1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 matplotlib,
7 numpy,
8 pandas,
9 scipy,
10 seaborn,
11 statsmodels,
12 pytestCheckHook,
13 seaborn-data,
14}:
15
16buildPythonPackage rec {
17 pname = "scikit-posthocs";
18 version = "0.11.4";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "maximtrp";
23 repo = "scikit-posthocs";
24 tag = "v${version}";
25 hash = "sha256-W1jm9mKJCwTPihZhtuCIM3HILT/nXLXbTjR+E2nwsug=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 matplotlib
32 numpy
33 pandas
34 scipy
35 seaborn
36 statsmodels
37 ];
38
39 preCheck = ''
40 # tests require to write to home directory
41 export SEABORN_DATA=${seaborn-data.exercise}
42 '';
43 nativeCheckInputs = [ pytestCheckHook ];
44 pythonImportsCheck = [ "scikit_posthocs" ];
45
46 meta = with lib; {
47 description = "Multiple Pairwise Comparisons (Post Hoc) Tests in Python";
48 homepage = "https://github.com/maximtrp/scikit-posthocs";
49 changelog = "https://github.com/maximtrp/scikit-posthocs/releases/tag/${src.tag}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ mbalatsko ];
52 };
53}