summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/moddb/default.nix
blob: d2792616c6b1232992959349373bdf2449159771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  beautifulsoup4,
  pyrate-limiter,
  requests,
  toolz,
}:

buildPythonPackage rec {
  pname = "moddb";
  version = "0.12.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ClementJ18";
    repo = "moddb";
    rev = "v${version}";
    hash = "sha256-idBja/W9r8iX69Af+x2TZcLpSLy45fC9pmrMKJZ0RsA=";
  };

  propagatedBuildInputs = [
    beautifulsoup4
    pyrate-limiter
    requests
    toolz
  ];

  pythonRelaxDeps = true;

  pythonImportsCheck = [ "moddb" ];

  doCheck = false; # Tests try to access the internet.

  meta = {
    description = "Python scrapper to access ModDB mods, games and more as objects";
    homepage = "https://github.com/ClementJ18/moddb";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}