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