{ lib, python, buildPythonPackage, fetchPypi }: buildPythonPackage rec { pname = "dnslib"; version = "0.9.18"; src = fetchPypi { inherit pname version; sha256 = "71a60664e275b411e08d9807aaafd2ee897a872bed003d5c8fdf12f5818503da"; }; checkPhase = "VERSIONS=${python.interpreter} ./run_tests.sh"; meta = with lib; { description = "Simple library to encode/decode DNS wire-format packets"; license = licenses.bsd2; homepage = "https://bitbucket.org/paulc/dnslib/"; maintainers = with maintainers; [ delroth ]; }; }