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