python3Packages.google-i18n-address: 2.4.0 -> 2.5.0

launchpad/nixpkgs/master
Robert Schütz 3 years ago committed by Jonathan Ringer
parent efacbac720
commit 81910baccc
  1. 29
      pkgs/development/python-modules/google-i18n-address/default.nix

@ -1,25 +1,26 @@
{ buildPythonPackage, fetchPypi, fetchpatch, lib, requests, pytestCheckHook, mock }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-i18n-address";
version = "2.4.0";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "8454a58f254a29988b8d1ca9ab663fd28a1f392a3d29b844d8824807db6333d7";
src = fetchFromGitHub {
owner = "mirumee";
repo = "google-i18n-address";
rev = version;
sha256 = "0fn5sph6fq68zrjssgvnnvrkavs8arshjwgxng5dr5fsn6qii3mq";
};
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 ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "i18naddress" ];
meta = with lib; {
description = "Google's i18n address data packaged for Python";

Loading…
Cancel
Save