2018-10-29 22:20:17 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests-cache
|
2019-03-05 13:11:48 +01:00
|
|
|
, pytest
|
2018-10-29 22:20:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tvdb_api";
|
2018-11-04 11:35:19 +01:00
|
|
|
version = "2.0";
|
2018-10-29 22:20:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 11:35:19 +01:00
|
|
|
sha256 = "b1de28a5100121d91b1f6a8ec7e86f2c4bdf48fb22fab3c6fe21e7fb7346bf8f";
|
2018-10-29 22:20:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests-cache ];
|
|
|
|
|
2019-03-05 13:11:48 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
# requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-29 22:20:17 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-03-05 13:11:48 +01:00
|
|
|
description = "Simple to use TVDB (thetvdb.com) API in Python";
|
2018-10-29 22:20:17 +01:00
|
|
|
homepage = "https://github.com/dbr/tvdb_api";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|