about summary refs log tree commit diff
path: root/pkgs/development/python-modules/py3dns/default.nix
blob: 5e8027bb60060cd74c72ede058625b27412962a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "py3dns";
  version = "3.2.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz";
  };

  preConfigure = ''
    sed -i \
      -e '/import DNS/d' \
      -e 's/DNS.__version__/"${version}"/g' \
      setup.py
  '';

  doCheck = false;

  meta = with lib; {
    description = "Python 3 DNS library";
    homepage = "https://launchpad.net/py3dns";
    license = licenses.psfl;
  };

}