lol

python312Packages.typed-ast: 1.5.4 -> 1.5.5

Diff: https://github.com/python/typed_ast/compare/1.5.4...1.5.5

+16 -17
+16 -17
pkgs/development/python-modules/typed-ast/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 + pythonAtLeast, 4 5 fetchFromGitHub, 6 + setuptools, 5 7 pytest, 6 - pythonOlder, 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "typed-ast"; 11 - version = "1.5.4"; 12 - format = "setuptools"; 12 + version = "1.5.5"; 13 + pyproject = true; 13 14 14 - disabled = pythonOlder "3.6"; 15 + # error: unknown type name ‘PyFutureFeatures’ 16 + disabled = pythonAtLeast "3.13"; 15 17 16 18 src = fetchFromGitHub { 17 19 owner = "python"; 18 20 repo = "typed_ast"; 19 - rev = version; 20 - hash = "sha256-GRmKw7SRrrIIb61VeB8GLhSKCmLUd54AA+GAf43vor8="; 21 + tag = version; 22 + hash = "sha256-A/FA6ngu8/bbpKW9coJ7unm9GQezGuDhgBWjOhAxm2o="; 21 23 }; 22 24 23 - nativeCheckInputs = [ pytest ]; 25 + build-system = [ 26 + setuptools 27 + ]; 24 28 25 - checkPhase = '' 26 - runHook preCheck 27 - 28 - # We can't use pytestCheckHook because that invokes pytest with python -m pytest 29 - # which adds the current directory to sys.path at the beginning. 30 - # _That_ version of the typed_ast module doesn't have the C extensions we need. 31 - pytest 29 + nativeCheckInputs = [ pytest ]; 32 30 33 - runHook postCheck 31 + preCheck = '' 32 + rm -rf typed_ast 34 33 ''; 35 34 36 35 pythonImportsCheck = [ ··· 40 39 "typed_ast.conversions" 41 40 ]; 42 41 43 - meta = with lib; { 42 + meta = { 44 43 description = "Python AST modules with type comment support"; 45 44 homepage = "https://github.com/python/typed_ast"; 46 - license = licenses.asl20; 45 + license = lib.licenses.asl20; 47 46 maintainers = [ ]; 48 47 }; 49 48 }