7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
89 lines
1.5 KiB
Nix
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.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "posit-dev";
|
|
repo = "great-tables";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-IlukgnhOT8NF1WxRJCnNuNEI31DByWoNzbk/x458atA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|