about summary refs log tree commit diff
path: root/pkgs/development/python-modules/gnutls/default.nix
blob: f26791fdbe968e6ea0d865a47b9991dead8e48f7 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, pkgs
}:

buildPythonPackage rec {
  pname = "python-gnutls";
  version = "3.1.3";

  # https://github.com/AGProjects/python-gnutls/issues/2
  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "79f94017e6472ac665c85bc16d68aa2e6681f53b6a9e74516557b49b6fc6a651";
  };

  propagatedBuildInputs = [ pkgs.gnutls ];
  patchPhase = ''
    substituteInPlace gnutls/library/__init__.py --replace "/usr/local/lib" "${pkgs.gnutls.out}/lib"
  '';

  meta = with stdenv.lib; {
    description = "Python wrapper for the GnuTLS library";
    homepage = "https://github.com/AGProjects/python-gnutls";
    license = licenses.lgpl2;
  };

}