From 9ac61d128a7e5e3203383ee04dd9bb1d4bf2b736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 29 Jun 2021 20:45:56 +0200 Subject: [PATCH] pythonPackages.google-i18n-address: fix compatibility with Python 3.9 --- .../python-modules/google-i18n-address/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-i18n-address/default.nix b/pkgs/development/python-modules/google-i18n-address/default.nix index 53ce654e41bb..153377605e93 100644 --- a/pkgs/development/python-modules/google-i18n-address/default.nix +++ b/pkgs/development/python-modules/google-i18n-address/default.nix @@ -1,15 +1,22 @@ -{ buildPythonPackage, fetchPypi, pythonAtLeast, lib, requests, pytestCheckHook, mock }: +{ buildPythonPackage, fetchPypi, fetchpatch, lib, requests, pytestCheckHook, mock }: buildPythonPackage rec { pname = "google-i18n-address"; version = "2.4.0"; - disabled = pythonAtLeast "3.9"; src = fetchPypi { inherit pname version; sha256 = "8454a58f254a29988b8d1ca9ab663fd28a1f392a3d29b844d8824807db6333d7"; }; + patches = [ + # fix compatibility with Python 3.9 + (fetchpatch { + url = "https://github.com/mirumee/google-i18n-address/commit/b1d63d980e8b1a666e312e1c05c9037e2920685b.patch"; + sha256 = "0lhsvkcgwz3i4az5hj8irbn8mj4b8yffq03isa18qp3z616adlrp"; + }) + ]; + propagatedBuildInputs = [ requests ]; checkInputs = [ pytestCheckHook mock ];