diff options
author | Christoph Heiss <christoph@c8h4.io> | 2024-02-07 10:10:49 +0100 |
---|---|---|
committer | Christoph Heiss <christoph@c8h4.io> | 2024-02-07 14:47:16 +0100 |
commit | bbdc0e9c2e4711d91323246351887e9602056890 (patch) | |
tree | c20fe7b2f2d305eeb87f87ec1943d2a76a71defe /pkgs/applications/version-management/sourcehut | |
parent | c36acb6afe9dce6df10dc4181c394c798bef7206 (diff) |
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>
Diffstat (limited to 'pkgs/applications/version-management/sourcehut')
-rw-r--r-- | pkgs/applications/version-management/sourcehut/lists.nix | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/pkgs/applications/version-management/sourcehut/lists.nix b/pkgs/applications/version-management/sourcehut/lists.nix index 6d62bdbdc1ecc..a88d164fec2ba 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 \ |