Unverified Commit 3751e1e4 authored by Ilan Joselevich's avatar Ilan Joselevich Committed by GitHub
Browse files

Merge pull request #216045 from Kranzes/lutris

lutris: 0.5.12 -> 0.5.13
parents fd8b18e4 fe9166fd
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@
, pypresence
, pyyaml
, requests
, protobuf
, moddb

  # commands that lutris needs
, xrandr
@@ -73,13 +75,13 @@ let
in
buildPythonApplication rec {
  pname = "lutris-unwrapped";
  version = "0.5.12";
  version = "0.5.13";

  src = fetchFromGitHub {
    owner = "lutris";
    repo = "lutris";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-rsiXm7L/M85ot6NrTyy//lMRFlLPJYve9y6Erg9Ugxg=";
    rev = "v${version}";
    hash = "sha256-ectrfbIkPhIqfhkavDpBCNdLPnGQhCnfFYwTf2IxB50=";
  };

  nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
@@ -113,6 +115,8 @@ buildPythonApplication rec {
    pypresence
    pyyaml
    requests
    protobuf
    moddb
  ];

  postPatch = ''
+47 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
, beautifulsoup4
, pyrate-limiter
, requests
, toolz
}:

buildPythonPackage rec {
  pname = "moddb";
  version = "0.8.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ClementJ18";
    repo = "moddb";
    rev = "v${version}";
    hash = "sha256-Pl/Wc0CL31+ZLFfy6yUfrZzsECifnEpWVGRHZVaFWG4=";
  };

  nativeBuildInputs = [
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
    beautifulsoup4
    pyrate-limiter
    requests
    toolz
  ];

  pythonRelaxDeps = true;

  pythonImportsCheck = [ "moddb" ];

  doCheck = false; # Tests try to access the internet.


  meta = with lib; {
    description = "A Python scrapper to access ModDB mods, games and more as objects";
    homepage = "https://github.com/ClementJ18/moddb";
    license = licenses.mit;
    maintainers = with maintainers; [ kranzes ];
  };
}
+34 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:

buildPythonPackage rec {
  pname = "pyrate-limiter";
  version = "2.10.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "vutran1710";
    repo = "PyrateLimiter";
    rev = "v${version}";
    hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  pythonImportsCheck = [
    "pyrate_limiter"
  ];

  meta = with lib; {
    description = "Python Rate-Limiter using Leaky-Bucket Algorimth Family";
    homepage = "https://github.com/vutran1710/PyrateLimiter";
    changelog = "https://github.com/vutran1710/PyrateLimiter/blob/${src.rev}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ kranzes ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -6309,6 +6309,8 @@ self: super: with self; {

  mockupdb = callPackage ../development/python-modules/mockupdb { };

  moddb = callPackage ../development/python-modules/moddb { };

  modeled = callPackage ../development/python-modules/modeled { };

  moderngl = callPackage ../development/python-modules/moderngl { };
@@ -9105,6 +9107,8 @@ self: super: with self; {

  pyramid_multiauth = callPackage ../development/python-modules/pyramid_multiauth { };

  pyrate-limiter = callPackage ../development/python-modules/pyrate-limiter { };

  pyreadstat = callPackage ../development/python-modules/pyreadstat {
    inherit (pkgs.darwin) libiconv;
  };