2018-10-27 14:35:09 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3dns";
|
2018-11-04 10:35:11 +00:00
|
|
|
version = "3.2.0";
|
2018-10-27 14:35:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:11 +00:00
|
|
|
sha256 = "8e88c0648c4d38a880f08aeb05a6e5cb48b8ce2602d381caafc6c71698ee3c21";
|
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;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python 3 DNS library";
|
|
|
|
homepage = https://launchpad.net/py3dns;
|
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|