nixpkgs-suyu/pkgs/development/python-modules/gnutls/default.nix
R. RyanTM 84339e448e python27Packages.gnutls: 3.0.0 -> 3.1.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python2.7-python-gnutls/versions
2018-10-24 10:10:54 +02:00

31 lines
691 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, pkgs
}:
buildPythonPackage rec {
pname = "python-gnutls";
version = "3.1.1";
# https://github.com/AGProjects/python-gnutls/issues/2
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0ncsz72i6vrhvxpd90y9k74qdfw3pfcj39pvn5dxp6m834ani4l8";
};
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;
};
}