diff options
Diffstat (limited to 'pkgs/development/python-modules/python3-gnutls/default.nix')
-rw-r--r-- | pkgs/development/python-modules/python3-gnutls/default.nix | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/python3-gnutls/default.nix b/pkgs/development/python-modules/python3-gnutls/default.nix index 72f695326d758..48b3b6d544638 100644 --- a/pkgs/development/python-modules/python3-gnutls/default.nix +++ b/pkgs/development/python-modules/python3-gnutls/default.nix @@ -1,28 +1,44 @@ -{ lib, fetchFromGitHub, substituteAll, buildPythonPackage, isPy3k, gnutls -, twisted, pyopenssl, service-identity }: +{ + lib, + fetchFromGitHub, + substituteAll, + buildPythonPackage, + isPy3k, + gnutls, + twisted, + pyopenssl, + service-identity, + setuptools, +}: buildPythonPackage rec { pname = "python3-gnutls"; - version = "3.1.9"; - format = "setuptools"; + version = "3.1.10"; + pyproject = true; disabled = !isPy3k; src = fetchFromGitHub { owner = "AGProjects"; repo = "python3-gnutls"; - rev = "324b78f7cd3d9fe58c89c7f0b2bf94199bd6a6e5"; # version not tagged - hash = "sha256-18T8bAHlNERHobsspUFvSC6ulN55nrFFb5aqNwU8T00="; + rev = "refs/tags/release-${version}"; + hash = "sha256-AdFRF3ZlkkAoSm5rvf/09FSYIo7SsZ38sD2joOLyukA="; }; - propagatedBuildInputs = [ twisted pyopenssl service-identity ]; + nativeBuildInputs = [ setuptools ]; + + propagatedBuildInputs = [ + twisted + pyopenssl + service-identity + ]; patches = [ (substituteAll { src = ./libgnutls-path.patch; gnutlslib = "${lib.getLib gnutls}/lib"; }) - ]; + ]; pythonImportsCheck = [ "gnutls" ]; |