diff --git a/pkgs/by-name/ir/irrd/package.nix b/pkgs/by-name/ir/irrd/package.nix index 1be5211f501a..97b464f8f068 100644 --- a/pkgs/by-name/ir/irrd/package.nix +++ b/pkgs/by-name/ir/irrd/package.nix @@ -3,7 +3,6 @@ python3, fetchPypi, fetchFromGitHub, - fetchpatch, git, postgresql, postgresqlTestHook, @@ -35,27 +34,35 @@ let }; doCheck = false; }); + + # https://github.com/irrdnet/irrd/blob/0fd95020279060f2bc2816c0533c825e40f4c73c/pyproject.toml#L58C1-L59C1 + limits = prev.limits.overridePythonAttrs (oldAttrs: rec { + version = "5.6.0"; + src = fetchFromGitHub { + owner = "alisaifee"; + repo = "limits"; + tag = version; + hash = "sha256-kghfF2ihEvyMPEGO1m9BquCdeBsYRoPyIljdLL1hToQ="; + }; + doCheck = false; + }); + }; }; in -py.pkgs.buildPythonPackage rec { +py.pkgs.buildPythonPackage (finalAttrs: { pname = "irrd"; - version = "4.5.0b2"; + version = "4.5.0"; pyproject = true; src = fetchFromGitHub { owner = "irrdnet"; repo = "irrd"; - rev = "v${version}"; - hash = "sha256-MMacxjF0LLSdInSwXwpHJUTdUQJ6sl4yu83vWR/A4Jc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-6z94Ha2QQ0LE4o3hzsNl4y/nPv849cSP8on3UeegE4c="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail py-radix py-radix-sr - ''; - pythonRelaxDeps = true; build-system = with python3.pkgs; [ poetry-core ]; @@ -153,10 +160,10 @@ py.pkgs.buildPythonPackage rec { ]; meta = { - changelog = "https://irrd.readthedocs.io/en/v${version}/releases/"; + changelog = "https://irrd.readthedocs.io/en/${finalAttrs.src.tag}/releases/"; description = "Internet Routing Registry database server, processing IRR objects in the RPSL format"; license = lib.licenses.mit; homepage = "https://github.com/irrdnet/irrd"; maintainers = with lib.maintainers; [ yureka-wdz ]; }; -} +})