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 { 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 - pythonOlder, 7 }: 8 9 buildPythonPackage rec { 10 pname = "typed-ast"; 11 - version = "1.5.4"; 12 - format = "setuptools"; 13 14 - disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "python"; 18 repo = "typed_ast"; 19 - rev = version; 20 - hash = "sha256-GRmKw7SRrrIIb61VeB8GLhSKCmLUd54AA+GAf43vor8="; 21 }; 22 23 - nativeCheckInputs = [ pytest ]; 24 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 32 33 - runHook postCheck 34 ''; 35 36 pythonImportsCheck = [ ··· 40 "typed_ast.conversions" 41 ]; 42 43 - meta = with lib; { 44 description = "Python AST modules with type comment support"; 45 homepage = "https://github.com/python/typed_ast"; 46 - license = licenses.asl20; 47 maintainers = [ ]; 48 }; 49 }
··· 1 { 2 lib, 3 buildPythonPackage, 4 + pythonAtLeast, 5 fetchFromGitHub, 6 + setuptools, 7 pytest, 8 }: 9 10 buildPythonPackage rec { 11 pname = "typed-ast"; 12 + version = "1.5.5"; 13 + pyproject = true; 14 15 + # error: unknown type name ‘PyFutureFeatures’ 16 + disabled = pythonAtLeast "3.13"; 17 18 src = fetchFromGitHub { 19 owner = "python"; 20 repo = "typed_ast"; 21 + tag = version; 22 + hash = "sha256-A/FA6ngu8/bbpKW9coJ7unm9GQezGuDhgBWjOhAxm2o="; 23 }; 24 25 + build-system = [ 26 + setuptools 27 + ]; 28 29 + nativeCheckInputs = [ pytest ]; 30 31 + preCheck = '' 32 + rm -rf typed_ast 33 ''; 34 35 pythonImportsCheck = [ ··· 39 "typed_ast.conversions" 40 ]; 41 42 + meta = { 43 description = "Python AST modules with type comment support"; 44 homepage = "https://github.com/python/typed_ast"; 45 + license = lib.licenses.asl20; 46 maintainers = [ ]; 47 }; 48 }