2018-10-27 15:35:09 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3dns";
|
2019-09-28 17:43:57 +02:00
|
|
|
version = "3.2.1";
|
2018-10-27 15:35:09 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 17:43:57 +02:00
|
|
|
sha256 = "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz";
|
2018-10-27 15:35:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i \
|
|
|
|
-e '/import DNS/d' \
|
|
|
|
-e 's/DNS.__version__/"${version}"/g' \
|
|
|
|
setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python 3 DNS library";
|
|
|
|
homepage = https://launchpad.net/py3dns;
|
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|