depot/third_party/nixpkgs/pkgs/development/python-modules/protonup-ng/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

31 lines
886 B
Nix

{ lib, buildPythonPackage, pythonOlder, fetchPypi, requests, configparser }:
buildPythonPackage rec {
pname = "protonup-ng";
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
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 = with lib; {
homepage = "https://github.com/cloudishBenne/protonup-ng";
description = "CLI program and API to automate the installation and update of GloriousEggroll's Proton-GE";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Madouura cafkafk ];
mainProgram = "protonup";
};
}