summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/protonup-ng/default.nix
blob: 845a69540800a3b0252eecae9271f641208f4137 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchPypi,
  requests,
  configparser,
}:

buildPythonPackage rec {
  pname = "protonup-ng";
  version = "0.2.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-rys9Noa3+w4phttfcI1OGEDfHMy8s80bm8kM8TzssQA=";
  };

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

  propagatedBuildInputs = [
    requests
    configparser
  ];

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

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