1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonRelaxDepsHook
5, beautifulsoup4
6, pyrate-limiter
7, requests
8, toolz
9}:
10
11buildPythonPackage rec {
12 pname = "moddb";
13 version = "0.9.0";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "ClementJ18";
18 repo = "moddb";
19 rev = "v${version}";
20 hash = "sha256-2t5QQAmSLOrdNCl0XdsFPdP2UF10/qq69DovqeQ1Vt8=";
21 };
22
23 nativeBuildInputs = [
24 pythonRelaxDepsHook
25 ];
26
27 propagatedBuildInputs = [
28 beautifulsoup4
29 pyrate-limiter
30 requests
31 toolz
32 ];
33
34 pythonRelaxDeps = true;
35
36 pythonImportsCheck = [ "moddb" ];
37
38 doCheck = false; # Tests try to access the internet.
39
40
41 meta = with lib; {
42 description = "A Python scrapper to access ModDB mods, games and more as objects";
43 homepage = "https://github.com/ClementJ18/moddb";
44 license = licenses.mit;
45 maintainers = with maintainers; [ kranzes ];
46 };
47}