summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tmdbsimple/default.nix
blob: 97fd4e3a99826754b501ab12db546cedf2c245db (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  requests,
  unstableGitUpdater,
}:

buildPythonPackage {
  pname = "tmdbsimple";
  version = "2.9.2-unstable-2025-01-07";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "celiao";
    repo = "tmdbsimple";
    rev = "0b3359f7bab3ade391b2e5de964ed115b00984a6";
    hash = "sha256-usyL2lHSJwvPnWncI3K+yTmeU5DN1AkRzHC5nFh3vxs=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  pythonImportsCheck = [ "tmdbsimple" ];

  # The tests require an internet connection and an API key
  doCheck = false;

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Wrapper for The Movie Database API v3";
    homepage = "https://github.com/celiao/tmdbsimple";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ theobori ];
  };
}