From 5344bd532d7e1f4b994c0e471cb34806e7eb23d4 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Sun, 12 Feb 2023 20:51:33 +0200 Subject: [PATCH] python3Packages.moddb: init at 0.8.1 --- .../python-modules/moddb/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/moddb/default.nix 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 20dbd181ecaf..9ed0da46330b 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 { };