1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, wheel 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.7.0"; 19 format = "pyproject"; 20 21 src = fetchFromGitHub { 22 owner = "maximtrp"; 23 repo = "scikit-posthocs"; 24 rev = "v${version}"; 25 hash = "sha256-IkvAc684AWEK427OGAa4qVy6leWmd3b8Dnhd5bYAt5I="; 26 }; 27 28 patches = [ 29 # Fixed on master: https://github.com/maximtrp/scikit-posthocs/commit/02266a00ce0eb6a089e7efe07816da1aa5152fc9 30 ./0001-increased-abs-tolerance-for-wilcoxon-test.patch 31 # Fixed on master: https://github.com/maximtrp/scikit-posthocs/commit/5416ffba3ab01aebab3909400b5a9e847022898e 32 ./0002-Update-test_posthocs.py.patch 33 ]; 34 35 nativeBuildInputs = [ 36 setuptools 37 wheel 38 ]; 39 40 propagatedBuildInputs = [ 41 matplotlib 42 numpy 43 pandas 44 scipy 45 seaborn 46 statsmodels 47 ]; 48 49 preCheck = '' 50 # tests require to write to home directory 51 export SEABORN_DATA=${seaborn-data.exercise} 52 ''; 53 nativeCheckInputs = [ 54 pytestCheckHook 55 ]; 56 pythonImportsCheck = [ "scikit_posthocs" ]; 57 58 meta = with lib; { 59 description = "Multiple Pairwise Comparisons (Post Hoc) Tests in Python"; 60 homepage = "https://github.com/maximtrp/scikit-posthocs"; 61 changelog = "https://github.com/maximtrp/scikit-posthocs/releases/tag/v${version}"; 62 license = licenses.mit; 63 maintainers = with maintainers; [ mbalatsko ]; 64 }; 65}