2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-27 14:35:09 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3dns";
|
2019-09-28 16:43:57 +01:00
|
|
|
version = "3.2.1";
|
2018-10-27 14:35:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 16:43:57 +01:00
|
|
|
sha256 = "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz";
|
2018-10-27 14:35:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i \
|
|
|
|
-e '/import DNS/d' \
|
|
|
|
-e 's/DNS.__version__/"${version}"/g' \
|
|
|
|
setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-27 14:35:09 +01:00
|
|
|
description = "Python 3 DNS library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/py3dns";
|
2018-10-27 14:35:09 +01:00
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|