This adresses Arabs, however it shows how lineage compatibility is part of Hanafi jurists fiqh. This means it's originally from the jurists Abu Hanifa and his students:
KAFA'AH (SUITABILITY AND COMPATIBILITY) IN NIKAH
A healthy marital life coupled with a good relationship make up the prime objects of Nikah. That is only possible when natural inclinations and backgrounds are shared (by both spouses). In the absence of such unity, living together successfully, despite great effort is indeed difficult, as attested to by many marital breakdowns due to non-compatibility.
Certain actions and situations elicit different responses from persons of differing backgrounds and nature. For this reason, the Shari’ah has considered Kafaa’at (suitability and compatibility) between spouses necessary.
Kafaa’at in Lineage
Due to the above, the Fuqahaa (Jurists) have stated that among Arabs, a non-Quraishi male is not a match (Kuf) for a Quraishi woman, nor can any person of non-Arab descent be a match for a woman of Arab descent.For example, the Sayyids, whether Siddique or Farooque, Uthmaani or Alawi, or belonging to some other branch can never be matched by any person not sharing their lineage, no matter his profession and family status.
These families (Sayyids, etc.) are suitable matches for one another, since they share descent from the Quraishi tribe. Thus, marriages between themselves are correct and permitted without any condition as appearing in Darrul Mukhtaar: ‘…
And Kafaa’at in lineage. Thus the Quraysh are suitable matches for one another as are the (other) Arabs suitable matches for one another.’
The ruling relevant to non-Arabs is as follows: ‘An Ajmi (non-Arab) cannot be a match for a woman of Arab descent, no matter that he be an Aalim (religious scholar) or even a Sultan (ruling authority). This is the correct view.)
http://askimam.org/public/question_detail/13925.html