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