2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
configparser,
|
|
|
|
}:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-11-21 17:40:18 +00:00
|
|
|
pname = "protonup-ng";
|
|
|
|
version = "0.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-18 10:52:07 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-rys9Noa3+w4phttfcI1OGEDfHMy8s80bm8kM8TzssQA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "argparse" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
configparser
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
doCheck = false; # protonup does not have any tests
|
|
|
|
pythonImportsCheck = [ "protonup" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://github.com/cloudishBenne/protonup-ng";
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "CLI program and API to automate the installation and update of GloriousEggroll's Proton-GE";
|
|
|
|
license = licenses.gpl3Only;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
Madouura
|
|
|
|
cafkafk
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "protonup";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|