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