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