1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, ipython
6, matplotlib
7, numpy
8, pandas
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "summarytools";
14 version = "0.2.3";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 # no version tags in GitHub repo
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-wsDf9IXCMQe0cVfQQuRVwMhxkhhUxbPu06yWZPLvgw4=";
23 };
24
25 propagatedBuildInputs = [
26 ipython
27 matplotlib
28 numpy
29 pandas
30 ];
31
32 nativeCheckImports = [ pytestCheckHook ];
33 pythonImportsCheck = [ "summarytools" ];
34
35 meta = with lib; {
36 description = "Python port of the R summarytools package for summarizing dataframes";
37 homepage = "https://github.com/6chaoran/jupyter-summarytools";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ bcdarwin ];
40 };
41}