2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 21:23:10 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, tvdb_api
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tvnamer";
|
2020-11-29 14:04:44 +00:00
|
|
|
version = "3.0.2";
|
2018-10-29 21:23:10 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:44 +00:00
|
|
|
sha256 = "a5ff916e104b2c0b567c2c7f2d8ae15a66a7ac57d67390e7c67207a33b79022f";
|
2018-10-29 21:23:10 +00:00
|
|
|
};
|
|
|
|
|
2018-12-31 08:49:19 +00:00
|
|
|
checkInputs = [ pytest ];
|
2018-10-29 21:23:10 +00:00
|
|
|
propagatedBuildInputs = [ tvdb_api ];
|
|
|
|
|
|
|
|
# a ton of tests fail with: IOError: tvnamer/main.py could not be found in . or ..
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 21:23:10 +00:00
|
|
|
description = "Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api.";
|
|
|
|
homepage = "https://github.com/dbr/tvnamer";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|