mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
python310Packages.dnslib: add pythonImportsCheck
- update meta - disable on older Python releases
This commit is contained in:
parent
d050bc1873
commit
b43a371f2a
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user