python310Packages.dnslib: add pythonImportsCheck

- update meta
- disable on older Python releases
This commit is contained in:
Fabian Affolter 2022-09-28 01:55:00 +02:00 committed by Jonathan Ringer
parent d050bc1873
commit b43a371f2a

View File

@ -1,20 +1,34 @@
{ lib, python, buildPythonPackage, fetchPypi }:
{ lib
, python
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "dnslib";
version = "0.9.22";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-EK/JT2pfHLiziCTgQuJeVBTh+q7f05s0iujZdyKSGoY=";
hash = "sha256-EK/JT2pfHLiziCTgQuJeVBTh+q7f05s0iujZdyKSGoY=";
};
checkPhase = "VERSIONS=${python.interpreter} ./run_tests.sh";
checkPhase = ''
VERSIONS=${python.interpreter} ./run_tests.sh
'';
pythonImportsCheck = [
"dnslib"
];
meta = with lib; {
description = "Simple library to encode/decode DNS wire-format packets";
homepage = "https://github.com/paulc/dnslib";
license = licenses.bsd2;
homepage = "https://bitbucket.org/paulc/dnslib/";
maintainers = with maintainers; [ delroth ];
};
}