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