diff options
Diffstat (limited to 'pkgs/development/python-modules/summarytools/default.nix')
-rw-r--r-- | pkgs/development/python-modules/summarytools/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/summarytools/default.nix b/pkgs/development/python-modules/summarytools/default.nix new file mode 100644 index 0000000000000..a46cf5080c7c9 --- /dev/null +++ b/pkgs/development/python-modules/summarytools/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, ipython +, matplotlib +, numpy +, pandas +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "summarytools"; + version = "0.2.3"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + # no version tags in GitHub repo + src = fetchPypi { + inherit pname version; + hash = "sha256-wsDf9IXCMQe0cVfQQuRVwMhxkhhUxbPu06yWZPLvgw4="; + }; + + propagatedBuildInputs = [ + ipython + matplotlib + numpy + pandas + ]; + + nativeCheckImports = [ pytestCheckHook ]; + pythonImportsCheck = [ "summarytools" ]; + + meta = with lib; { + description = "Python port of the R summarytools package for summarizing dataframes"; + homepage = "https://github.com/6chaoran/jupyter-summarytools"; + license = licenses.asl20; + maintainers = with maintainers; [ bcdarwin ]; + }; +} |