how rare is it to get mending from fishing?
If Treasure is chosen, your chance of getting an enchanted book is then 16.7%. With some experimentation I found the chance of an enchanted book, enchanted with the same parameters as fishing enchants books with, having mending is 3.7%.