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