1{ lib 2, python 3, buildPythonPackage 4, fetchPypi 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "dnslib"; 10 version = "0.9.23"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-MQGW0+OM4gUbYe670vHQj8yTT6M2DyIDGGTRbv6Lync="; 18 }; 19 20 checkPhase = '' 21 VERSIONS=${python.interpreter} ./run_tests.sh 22 ''; 23 24 pythonImportsCheck = [ 25 "dnslib" 26 ]; 27 28 meta = with lib; { 29 description = "Simple library to encode/decode DNS wire-format packets"; 30 homepage = "https://github.com/paulc/dnslib"; 31 license = licenses.bsd2; 32 maintainers = with maintainers; [ delroth ]; 33 }; 34}