about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/protonup/default.nix
blob: ad760063248f8a5c7f9d33c49f1c8f657b84dacc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildPythonPackage, pythonOlder, fetchPypi, requests, configparser }:

buildPythonPackage rec {
  pname = "protonup";
  version = "0.1.4";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0z5q0s9h51w2bqm9lkafml14g13v2dgm4nm9x06v7nxqc9msmyyy";
  };

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace "argparse" ""
  '';

  propagatedBuildInputs = [ requests configparser ];

  doCheck = false; # protonup does not have any tests
  pythonImportsCheck = [ "protonup" ];

  meta = with lib; {
    homepage = "https://github.com/AUNaseef/protonup";
    description = "CLI program and API to automate the installation and update of GloriousEggroll's Proton-GE";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ flexagoon ];
  };
}