Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / scikit-posthocs / default.nix
blobe8f3933299a74913694fab3fa0e937248cc94b2c
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
16 buildPythonPackage rec {
17   pname = "scikit-posthocs";
18   version = "0.9.0";
19   format = "pyproject";
21   src = fetchFromGitHub {
22     owner = "maximtrp";
23     repo = "scikit-posthocs";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-sRop5DKakrZEBswzTvumn68wKqU15zM5aCLfZ/PdsFg=";
26   };
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   ];
35   nativeBuildInputs = [
36     setuptools
37     wheel
38   ];
40   propagatedBuildInputs = [
41     matplotlib
42     numpy
43     pandas
44     scipy
45     seaborn
46     statsmodels
47   ];
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" ];
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   };