2022-09-06 09:10:47 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gogdl";
|
2022-10-15 06:19:44 +00:00
|
|
|
version = "0.4";
|
2022-09-06 09:10:47 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Heroic-Games-Launcher";
|
|
|
|
repo = "heroic-gogdl";
|
2022-10-15 06:19:44 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-4hWuGd0Alzd/ZqtN4zG2aid6C9lnT3Ihrrsjfg9PEYA=";
|
2022-09-06 09:10:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|