1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pkgs
6}:
7
8buildPythonPackage rec {
9 pname = "python-gnutls";
10 version = "3.1.3";
11
12 # https://github.com/AGProjects/python-gnutls/issues/2
13 disabled = isPy3k;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "79f94017e6472ac665c85bc16d68aa2e6681f53b6a9e74516557b49b6fc6a651";
18 };
19
20 propagatedBuildInputs = [ pkgs.gnutls ];
21 patchPhase = ''
22 substituteInPlace gnutls/library/__init__.py --replace "/usr/local/lib" "${pkgs.gnutls.out}/lib"
23 '';
24
25 meta = with lib; {
26 description = "Python wrapper for the GnuTLS library";
27 homepage = "https://github.com/AGProjects/python-gnutls";
28 license = licenses.lgpl2;
29 };
30
31}