nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python312Packages.asttokens: refactor

authored by

Fabian Affolter and committed by
Martin Weinelt
53bde90d e9917a88

+9 -9
+9 -9
pkgs/development/python-modules/asttokens/default.nix
··· 1 1 { 2 2 lib, 3 - fetchPypi, 4 - buildPythonPackage, 5 - setuptools-scm, 6 - six, 7 3 astroid, 4 + buildPythonPackage, 5 + fetchPypi, 8 6 pytestCheckHook, 7 + pythonOlder, 8 + setuptools-scm, 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 12 pname = "asttokens"; 13 13 version = "3.0.0"; 14 - format = "pyproject"; 14 + pyproject = true; 15 + 16 + disabled = pythonOlder "3.8"; 15 17 16 18 src = fetchPypi { 17 19 inherit pname version; 18 20 hash = "sha256-Dc2Lqo1isMHRGLOZst26PEr/Jx0Nep4NTBaBx5A1u8c="; 19 21 }; 20 22 21 - nativeBuildInputs = [ setuptools-scm ]; 22 - 23 - propagatedBuildInputs = [ six ]; 23 + build-system = [ setuptools-scm ]; 24 24 25 25 nativeCheckInputs = [ 26 26 astroid ··· 40 40 pythonImportsCheck = [ "asttokens" ]; 41 41 42 42 meta = with lib; { 43 - homepage = "https://github.com/gristlabs/asttokens"; 44 43 description = "Annotate Python AST trees with source text and token information"; 44 + homepage = "https://github.com/gristlabs/asttokens"; 45 45 license = licenses.asl20; 46 46 maintainers = with maintainers; [ leenaars ]; 47 47 };