1{ 2 lib, 3 buildPythonPackage, 4 dnspython, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "srvlookup"; 12 version = "3.0.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "gmr"; 19 repo = "srvlookup"; 20 tag = version; 21 hash = "sha256-iXbi25HsoNX0hnhwZoFik5ddlJ7i+xml3HGaezj3jgY="; 22 }; 23 24 propagatedBuildInputs = [ dnspython ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "srvlookup" ]; 29 30 meta = with lib; { 31 description = "Wrapper for dnspython to return SRV records for a given host, protocol, and domain name"; 32 homepage = "https://github.com/gmr/srvlookup"; 33 license = with licenses; [ bsd3 ]; 34 maintainers = with maintainers; [ mmlb ]; 35 }; 36}