nixpkgs/pkgs/development/python-modules/py3dns/default.nix
2018-12-03 16:50:33 +01:00

31 lines
547 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "py3dns";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "8e88c0648c4d38a880f08aeb05a6e5cb48b8ce2602d381caafc6c71698ee3c21";
};
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;
};
}