legendary-gl: move to by-name, modernize (#451006)

This commit is contained in:
Sandro
2025-10-31 00:13:06 +00:00
committed by GitHub
2 changed files with 15 additions and 16 deletions

View File

@@ -2,43 +2,44 @@
lib, lib,
gitUpdater, gitUpdater,
fetchFromGitHub, fetchFromGitHub,
buildPythonApplication, python3Packages,
pythonOlder,
requests,
filelock,
}: }:
buildPythonApplication { python3Packages.buildPythonApplication {
pname = "legendary-gl"; # Name in pypi pname = "legendary-gl"; # Name in pypi
version = "0.20.34"; version = "0.20.34";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "derrod"; owner = "derrod";
repo = "legendary"; repo = "legendary";
rev = "56d439ed2d3d9f34e2b08fa23e627c23a487b8d6"; rev = "56d439ed2d3d9f34e2b08fa23e627c23a487b8d6";
sha256 = "sha256-yCHeeEGw+9gtRMGyIhbStxJhmSM/1Fqly7HSRDkZILQ="; hash = "sha256-yCHeeEGw+9gtRMGyIhbStxJhmSM/1Fqly7HSRDkZILQ=";
}; };
propagatedBuildInputs = [ build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
requests requests
filelock filelock
]; ];
disabled = pythonOlder "3.8"; disabled = python3Packages.pythonOlder "3.8";
# no tests # no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "legendary" ]; pythonImportsCheck = [ "legendary" ];
meta = with lib; { passthru.updateScript = gitUpdater { };
meta = {
description = "Free and open-source Epic Games Launcher alternative"; description = "Free and open-source Epic Games Launcher alternative";
homepage = "https://github.com/derrod/legendary"; homepage = "https://github.com/derrod/legendary";
license = licenses.gpl3; license = lib.licenses.gpl3Plus;
maintainers = with maintainers; [ equirosa ]; maintainers = with lib.maintainers; [ equirosa ];
mainProgram = "legendary"; mainProgram = "legendary";
}; };
passthru.updateScript = gitUpdater { };
} }

View File

@@ -13177,8 +13177,6 @@ with pkgs;
leela-zero = libsForQt5.callPackage ../games/leela-zero { }; leela-zero = libsForQt5.callPackage ../games/leela-zero { };
legendary-gl = python3Packages.callPackage ../games/legendary-gl { };
liquidwar = callPackage ../games/liquidwar { liquidwar = callPackage ../games/liquidwar {
guile = guile_2_0; guile = guile_2_0;
}; };