From ba522b459c60b310b24d602b8eae3c5f75d0302c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 7 Jun 2023 23:26:54 +0200 Subject: [PATCH] python311Packages.google-i18n-address: 2.5.2 -> 3.0.0 Changelog: https://github.com/mirumee/google-i18n-address/releases/tag/3.0.0 --- .../google-i18n-address/default.nix | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/google-i18n-address/default.nix b/pkgs/development/python-modules/google-i18n-address/default.nix index 5d26ba2de3a0..3c9b8e6f0516 100644 --- a/pkgs/development/python-modules/google-i18n-address/default.nix +++ b/pkgs/development/python-modules/google-i18n-address/default.nix @@ -1,31 +1,47 @@ { lib , buildPythonPackage , fetchFromGitHub +, hatchling , requests , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "google-i18n-address"; - version = "2.5.2"; + version = "3.0.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mirumee"; repo = "google-i18n-address"; rev = "refs/tags/${version}"; - hash = "sha256-7t5sNpEVajdwcW8+xTNZQKZVgxhUzfbVbEVgn7JJ2MY="; + hash = "sha256-eh0NcGJfIjCmgTyfSOlDNLrCvMnZKzkJkQb3txVmFAo="; }; - propagatedBuildInputs = [ requests ]; + nativeBuildInputs = [ + hatchling + ]; - nativeCheckInputs = [ pytestCheckHook ]; + propagatedBuildInputs = [ + requests + ]; - pythonImportsCheck = [ "i18naddress" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "i18naddress" + ]; meta = with lib; { description = "Google's i18n address data packaged for Python"; homepage = "https://github.com/mirumee/google-i18n-address"; - maintainers = with maintainers; [ SuperSandro2000 ]; + changelog = "https://github.com/mirumee/google-i18n-address/releases/tag/${version}"; license = licenses.bsd3; + maintainers = with maintainers; [ SuperSandro2000 ]; }; }