1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, hatchling
5, requests
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "google-i18n-address";
12 version = "3.1.0";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "mirumee";
19 repo = "google-i18n-address";
20 rev = "refs/tags/${version}";
21 hash = "sha256-dW/1wwnFDjYpym1ZaSZ7mOLpkHxsvuAHC8zBRekxWaw=";
22 };
23
24 nativeBuildInputs = [
25 hatchling
26 ];
27
28 propagatedBuildInputs = [
29 requests
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "i18naddress"
38 ];
39
40 meta = with lib; {
41 description = "Google's i18n address data packaged for Python";
42 homepage = "https://github.com/mirumee/google-i18n-address";
43 changelog = "https://github.com/mirumee/google-i18n-address/releases/tag/${version}";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ ];
46 };
47}