python312Packages.asttokens: refactor
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user