depot/third_party/nixpkgs/pkgs/development/python-modules/great-tables/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

89 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
babel,
commonmark,
htmltools,
importlib-metadata,
importlib-resources,
numpy,
typing-extensions,
# tests
ipykernel,
ipython,
pandas,
polars,
pyarrow,
pytestCheckHook,
pytest-cov-stub,
requests,
shiny,
syrupy,
}:
buildPythonPackage rec {
pname = "great-tables";
version = "0.11.0";
pyproject = true;
src = fetchFromGitHub {
owner = "posit-dev";
repo = "great-tables";
rev = "refs/tags/v${version}";
hash = "sha256-ccS//fSFa6sytKv0izRxIdnHoNICr7P90Eo+v62RmVA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
babel
commonmark
htmltools
importlib-metadata
importlib-resources
numpy
typing-extensions
];
pythonImportsCheck = [ "great_tables" ];
nativeCheckInputs = [
ipykernel
ipython
pandas
polars
pyarrow
pytestCheckHook
pytest-cov-stub
requests
shiny
syrupy
];
disabledTests = [
# require selenium with chrome driver:
"test_save_image_file"
"test_save_non_png"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Library for rendering and formatting dataframes";
homepage = "https://github.com/posit-dev/great-tables";
changelog = "https://github.com/posit-dev/great-tables/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}