From bbdc0e9c2e4711d91323246351887e9602056890 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Wed, 7 Feb 2024 10:10:49 +0100 Subject: sourcehut.listssrht: 0.57.8 -> 0.57.14 Also refactor it to the same common structure as all other sourcehut packages, thus opening the possibility to even further simplify this in the future. Signed-off-by: Christoph Heiss --- .../version-management/sourcehut/lists.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/version-management/sourcehut/lists.nix b/pkgs/applications/version-management/sourcehut/lists.nix index 6d62bdbdc1ec..a88d164fec2b 100644 --- a/pkgs/applications/version-management/sourcehut/lists.nix +++ b/pkgs/applications/version-management/sourcehut/lists.nix @@ -14,26 +14,30 @@ , setuptools }: -buildPythonPackage rec { - pname = "listssrht"; - version = "0.57.8"; - pyproject = true; - - disabled = pythonOlder "3.7"; +let + version = "0.57.14"; + gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; }; src = fetchFromSourcehut { owner = "~sircmpwn"; repo = "lists.sr.ht"; rev = version; - sha256 = "sha256-nQZRSTAyTWxcPHrRVCZ5TgcrNgrlxBFc1vRds0cQwA0="; + hash = "sha256-rzOxlat7Lbgt0Wl6vvnAC+fS3MynFVKFvVdIdxgA5e0="; }; listssrht-api = buildGoModule ({ inherit src version; pname = "listssrht-api"; modRoot = "api"; - vendorHash = "sha256-E5Zzft9ANJT/nhhCuenZpdo3t9QYLmA+AyDyrbGectE="; - } // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); + vendorHash = "sha256-OWgrPvXVlvJPcoABP0ZxKzoYFhU44j/I44sBBRbd6KY="; + } // gqlgen); +in +buildPythonPackage rec { + inherit src version; + pname = "listssrht"; + pyproject = true; + + disabled = pythonOlder "3.7"; postPatch = '' substituteInPlace Makefile \ -- cgit 1.4.1