2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 03:37:42 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-gnutls";
|
2020-05-09 10:01:49 +00:00
|
|
|
version = "3.1.3";
|
2018-10-16 03:37:42 +00:00
|
|
|
|
|
|
|
# https://github.com/AGProjects/python-gnutls/issues/2
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:01:49 +00:00
|
|
|
sha256 = "79f94017e6472ac665c85bc16d68aa2e6681f53b6a9e74516557b49b6fc6a651";
|
2018-10-16 03:37:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pkgs.gnutls ];
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace gnutls/library/__init__.py --replace "/usr/local/lib" "${pkgs.gnutls.out}/lib"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 03:37:42 +00:00
|
|
|
description = "Python wrapper for the GnuTLS library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/AGProjects/python-gnutls";
|
2018-10-16 03:37:42 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|