For example you can summon a Villager who trades the Enchanted Book. The command to summon a Villager who trades a book and 32 Emeralds for the Enchanted Book could look like this:
Code (Text):
/summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:{id:book,Count:1},buyB:{id:emerald,Count:32},sell:{id:enchanted_book,Count:1,tag:{StoredEnchantments:[{id:"replenishenchantment:replenish",lvl:1}],display:{Lore:['[{"text":"Replenish","italic":false,"color":"gray"}]']}}}}]}}
You could also just add the Enchanted Book, or an enchanted tool to a Shopkeepers shop, if you have the
Shopkeepers plugin installed.