2018-10-29 21:23:10 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, tvdb_api
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tvnamer";
|
2020-10-04 10:53:32 +01:00
|
|
|
version = "3.0.1";
|
2018-10-29 21:23:10 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-04 10:53:32 +01:00
|
|
|
sha256 = "5512cebb1e49103a1e4ea9629398092b4bbabef35a91007ae0dbed961ebe17dd";
|
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;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|