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 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "google-i18n-address"; 13 version = "3.1.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "mirumee"; 20 repo = "google-i18n-address"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-dW/1wwnFDjYpym1ZaSZ7mOLpkHxsvuAHC8zBRekxWaw="; 23 }; 24 25 nativeBuildInputs = [ hatchling ]; 26 27 propagatedBuildInputs = [ 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 mainProgram = "update-validation-files"; 36 homepage = "https://github.com/mirumee/google-i18n-address"; 37 changelog = "https://github.com/mirumee/google-i18n-address/releases/tag/${version}"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ ]; 40 }; 41}