python312Packages.asttokens: refactor

This commit is contained in:
Fabian Affolter
2025-01-27 10:54:24 +01:00
committed by Martin Weinelt
parent e9917a8805
commit 53bde90d30
@@ -1,26 +1,26 @@
{
lib,
fetchPypi,
buildPythonPackage,
setuptools-scm,
six,
astroid,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "asttokens";
version = "3.0.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Dc2Lqo1isMHRGLOZst26PEr/Jx0Nep4NTBaBx5A1u8c=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six ];
build-system = [ setuptools-scm ];
nativeCheckInputs = [
astroid
@@ -40,8 +40,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "asttokens" ];
meta = with lib; {
homepage = "https://github.com/gristlabs/asttokens";
description = "Annotate Python AST trees with source text and token information";
homepage = "https://github.com/gristlabs/asttokens";
license = licenses.asl20;
maintainers = with maintainers; [ leenaars ];
};