2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, wheel
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, scipy
|
|
|
|
, seaborn
|
|
|
|
, statsmodels
|
|
|
|
, pytestCheckHook
|
|
|
|
, seaborn-data
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-posthocs";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.9.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maximtrp";
|
|
|
|
repo = "scikit-posthocs";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-sRop5DKakrZEBswzTvumn68wKqU15zM5aCLfZ/PdsFg=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
seaborn
|
|
|
|
statsmodels
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# tests require to write to home directory
|
|
|
|
export SEABORN_DATA=${seaborn-data.exercise}
|
|
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
pythonImportsCheck = [ "scikit_posthocs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multiple Pairwise Comparisons (Post Hoc) Tests in Python";
|
|
|
|
homepage = "https://github.com/maximtrp/scikit-posthocs";
|
|
|
|
changelog = "https://github.com/maximtrp/scikit-posthocs/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
|
|
};
|
|
|
|
}
|