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 <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-02-07 10:10:49 +01:00
parent c36acb6afe
commit bbdc0e9c2e
No known key found for this signature in database
GPG Key ID: 1538094429952F86

View File

@ -14,26 +14,30 @@
, setuptools , setuptools
}: }:
buildPythonPackage rec { let
pname = "listssrht"; version = "0.57.14";
version = "0.57.8"; gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.36"; };
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~sircmpwn"; owner = "~sircmpwn";
repo = "lists.sr.ht"; repo = "lists.sr.ht";
rev = version; rev = version;
sha256 = "sha256-nQZRSTAyTWxcPHrRVCZ5TgcrNgrlxBFc1vRds0cQwA0="; hash = "sha256-rzOxlat7Lbgt0Wl6vvnAC+fS3MynFVKFvVdIdxgA5e0=";
}; };
listssrht-api = buildGoModule ({ listssrht-api = buildGoModule ({
inherit src version; inherit src version;
pname = "listssrht-api"; pname = "listssrht-api";
modRoot = "api"; modRoot = "api";
vendorHash = "sha256-E5Zzft9ANJT/nhhCuenZpdo3t9QYLmA+AyDyrbGectE="; vendorHash = "sha256-OWgrPvXVlvJPcoABP0ZxKzoYFhU44j/I44sBBRbd6KY=";
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; }); } // gqlgen);
in
buildPythonPackage rec {
inherit src version;
pname = "listssrht";
pyproject = true;
disabled = pythonOlder "3.7";
postPatch = '' postPatch = ''
substituteInPlace Makefile \ substituteInPlace Makefile \