diff --git a/pkgs/games/gogdl/default.nix b/pkgs/games/gogdl/default.nix new file mode 100644 index 000000000000..2b250aeddf5e --- /dev/null +++ b/pkgs/games/gogdl/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonApplication +, fetchFromGitHub +, pythonOlder +, setuptools +, requests +}: + +buildPythonApplication rec { + pname = "gogdl"; + version = "0.3"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Heroic-Games-Launcher"; + repo = "heroic-gogdl"; + rev = "v${version}"; + sha256 = "sha256-lVNvmdUK7rjSNVdhDuSxyfuEw2FeZt0rVf9pdtsfgqE="; + }; + + disabled = pythonOlder "3.8"; + + propagatedBuildInputs = [ + setuptools + requests + ]; + + pythonImportsCheck = [ "gogdl" ]; + + meta = with lib; { + description = "GOG Downloading module for Heroic Games Launcher"; + homepage = "https://github.com/Heroic-Games-Launcher/heroic-gogdl"; + license = with licenses; [ gpl3 ]; + maintainers = with maintainers; [ aidalgol ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 02cdf1d8ba20..fd7b0ee73d13 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33583,6 +33583,8 @@ with pkgs; gnushogi = callPackage ../games/gnushogi { }; + gogdl = python3Packages.callPackage ../games/gogdl { }; + gogui = callPackage ../games/gogui { }; gscrabble = python3Packages.callPackage ../games/gscrabble { };