diff --git a/pkgs/applications/misc/lutris/default.nix b/pkgs/applications/misc/lutris/default.nix index e70fe0a19c9c..2836b14cd716 100644 --- a/pkgs/applications/misc/lutris/default.nix +++ b/pkgs/applications/misc/lutris/default.nix @@ -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 = '' diff --git a/pkgs/development/python-modules/moddb/default.nix b/pkgs/development/python-modules/moddb/default.nix new file mode 100644 index 000000000000..102410dc6bbb --- /dev/null +++ b/pkgs/development/python-modules/moddb/default.nix @@ -0,0 +1,47 @@ +{ 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 ]; + }; +} diff --git a/pkgs/development/python-modules/pyrate-limiter/default.nix b/pkgs/development/python-modules/pyrate-limiter/default.nix new file mode 100644 index 000000000000..3aa0d42e2d50 --- /dev/null +++ b/pkgs/development/python-modules/pyrate-limiter/default.nix @@ -0,0 +1,34 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 205d95ec4100..7210c1a1a03f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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; };