summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tvdb-api/default.nix
blob: 9d93e847ac33cf3327d45010d30e49f0325489ba (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests-cache,
  pytest,
}:

buildPythonPackage {
  pname = "tvdb-api";
  version = "3.2.0-beta";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "dbr";
    repo = "tvdb_api";
    rev = "ce0382181a9e08a5113bfee0fed2c78f8b1e613f";
    hash = "sha256-poUuwySr6+8U9PIHhqFaR7nXzh8kSaW7mZkuKTUJKj8=";
  };

  propagatedBuildInputs = [ requests-cache ];

  nativeCheckInputs = [ pytest ];

  # requires network access
  doCheck = false;

  meta = {
    description = "Simple to use TVDB (thetvdb.com) API in Python";
    homepage = "https://github.com/dbr/tvdb_api";
    license = lib.licenses.unlicense;
    maintainers = with lib.maintainers; [ peterhoeg ];
  };
}