mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
Diff: https://github.com/tconbeer/textual-fastdatatable/compare/v0.14.0...v0.17.0 Changelog: https://github.com/tconbeer/textual-fastdatatable/releases/tag/v0.17.0
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{
|
||
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 ];
|
||
};
|
||
})
|