1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 requests, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "google-i18n-address"; 13 version = "3.1.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "mirumee"; 20 repo = "google-i18n-address"; 21 tag = version; 22 hash = "sha256-7RqS/+6zInlhWydJwp4xf2uGpfmSdiSwvJugpL8Mlpk="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 dependencies = [ requests ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "i18naddress" ]; 32 33 meta = with lib; { 34 description = "Google's i18n address data packaged for Python"; 35 homepage = "https://github.com/mirumee/google-i18n-address"; 36 changelog = "https://github.com/mirumee/google-i18n-address/releases/tag/${version}"; 37 license = licenses.bsd3; 38 maintainers = [ ]; 39 mainProgram = "update-validation-files"; 40 }; 41}