python312Packages.asttokens: refactor

Changed files
+9 -9
pkgs
development
python-modules
asttokens
+9 -9
pkgs/development/python-modules/asttokens/default.nix
···
{
lib,
+
astroid,
+
buildPythonPackage,
fetchPypi,
-
buildPythonPackage,
+
pytestCheckHook,
+
pythonOlder,
setuptools-scm,
-
six,
-
astroid,
-
pytestCheckHook,
}:
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
···
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 ];
};