2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dnspython";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "2.1.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "e4a87f0b573201a0f3727fa18a516b055fd1107e0e5477cded4a2de497df1dd4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# needs networking for some tests
|
|
|
|
doCheck = false;
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [ "dns" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A DNS toolkit for Python";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://www.dnspython.org";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = with licenses; [ isc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|