forked from mirrors/nixpkgs
pythonPackages.google-i18n-address: fix compatibility with Python 3.9
This commit is contained in:
parent
642b5ec6fd
commit
9ac61d128a
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue