Files
nixpkgs/pkgs/development/python-modules/textual-fastdatatable/default.nix

71 lines
1.5 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
pyarrow,
textual,
typing-extensions,
# optional-dependencies
polars,
# tests
pytest-asyncio,
pytest-textual-snapshot,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "textual-fastdatatable";
version = "0.17.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "tconbeer";
repo = "textual-fastdatatable";
tag = "v${finalAttrs.version}";
hash = "sha256-aDbYwPISsmk9af3yQWh4ClHj3SRljzBMVxvYgWk61rM=";
};
build-system = [ hatchling ];
dependencies = [
pyarrow
textual
typing-extensions
]
++ textual.optional-dependencies.syntax;
optional-dependencies = {
polars = [ polars ];
};
nativeCheckInputs = [
pytest-asyncio
pytest-textual-snapshot
pytestCheckHook
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pythonImportsCheck = [ "textual_fastdatatable" ];
disabledTestPaths = [
# Tests are comparing CLI output
"tests/snapshot_tests/test_snapshots.py"
];
meta = {
description = "Performance-focused reimplementation of Textual's DataTable widget, with a pluggable data storage backend";
homepage = "https://github.com/tconbeer/textual-fastdatatable";
changelog = "https://github.com/tconbeer/textual-fastdatatable/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pcboy ];
};
})