2017-05-18 12:46:04 +02:00
|
|
|
{ stdenv
|
2018-06-23 15:27:58 +02:00
|
|
|
, fetchPypi
|
2017-05-18 12:46:04 +02:00
|
|
|
, buildPythonApplication
|
|
|
|
, guessit
|
|
|
|
, babelfish
|
|
|
|
, enzyme
|
|
|
|
, beautifulsoup4
|
|
|
|
, requests
|
|
|
|
, click
|
|
|
|
, dogpile_cache
|
|
|
|
, stevedore
|
|
|
|
, chardet
|
|
|
|
, pysrt
|
|
|
|
, six
|
|
|
|
, appdirs
|
|
|
|
, rarfile
|
|
|
|
, pytz
|
|
|
|
, futures
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "subliminal";
|
2017-05-18 12:46:04 +02:00
|
|
|
version = "2.0.5";
|
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-05-18 12:46:04 +02:00
|
|
|
sha256 = "1dzv5csjcwgz69aimarx2c6606ckm2gbn4x2mzydcqnyai7sayhl";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Too many test dependencies
|
|
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ guessit babelfish enzyme beautifulsoup4 requests
|
|
|
|
click dogpile_cache stevedore chardet pysrt six
|
|
|
|
appdirs rarfile pytz futures ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/Diaoul/subliminal;
|
|
|
|
description = "Python library to search and download subtitles";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|