1{ lib, buildPythonPackage, pythonOlder, fetchPypi, requests, configparser }:
2
3buildPythonPackage rec {
4 pname = "protonup-ng";
5 version = "0.2.1";
6 disabled = pythonOlder "3.6";
7
8 src = fetchPypi {
9 inherit pname version;
10 hash = "sha256-rys9Noa3+w4phttfcI1OGEDfHMy8s80bm8kM8TzssQA=";
11 };
12
13 postPatch = ''
14 substituteInPlace setup.cfg \
15 --replace "argparse" ""
16 '';
17
18 propagatedBuildInputs = [ requests configparser ];
19
20 doCheck = false; # protonup does not have any tests
21 pythonImportsCheck = [ "protonup" ];
22
23 meta = with lib; {
24 homepage = "https://github.com/cloudishBenne/protonup-ng";
25 description = "CLI program and API to automate the installation and update of GloriousEggroll's Proton-GE";
26 license = licenses.gpl3Only;
27 maintainers = with maintainers; [ Madouura ];
28 };
29}