Files
nixpkgs/pkgs/development/python-modules/asttokens/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
901 B
Nix

{
lib,
astroid,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "asttokens";
version = "3.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Dc2Lqo1isMHRGLOZst26PEr/Jx0Nep4NTBaBx5A1u8c=";
};
build-system = [ setuptools-scm ];
nativeCheckInputs = [
astroid
pytestCheckHook
];
disabledTests = [
# Test is currently failing on Hydra, works locally
"test_slices"
];
disabledTestPaths = [
# incompatible with astroid 2.11.0, pins <= 2.5.3
"tests/test_astroid.py"
];
pythonImportsCheck = [ "asttokens" ];
meta = {
description = "Annotate Python AST trees with source text and token information";
homepage = "https://github.com/gristlabs/asttokens";
license = lib.licenses.asl20;
};
}