nixpkgs/pkgs/development/python-modules/py3dns/default.nix

31 lines
547 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "py3dns";
2018-11-04 10:35:11 +00:00
version = "3.2.0";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:11 +00:00
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;
};
}