1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests-cache
5, pytest
6}:
7
8buildPythonPackage rec {
9 pname = "tvdb-api";
10 version = "3.2.0-beta";
11
12 src = fetchFromGitHub {
13 owner = "dbr";
14 repo = "tvdb_api";
15 rev = "ce0382181a9e08a5113bfee0fed2c78f8b1e613f";
16 hash = "sha256-poUuwySr6+8U9PIHhqFaR7nXzh8kSaW7mZkuKTUJKj8=";
17 };
18
19 propagatedBuildInputs = [ requests-cache ];
20
21 nativeCheckInputs = [ pytest ];
22
23 # requires network access
24 doCheck = false;
25
26 meta = with lib; {
27 description = "Simple to use TVDB (thetvdb.com) API in Python";
28 homepage = "https://github.com/dbr/tvdb_api";
29 license = licenses.unlicense;
30 maintainers = with maintainers; [ peterhoeg ];
31 };
32}