2019-03-15 17:01:01 +01:00
|
|
|
{ lib
|
2018-06-23 15:27:58 +02:00
|
|
|
, fetchPypi
|
2019-03-15 17:01:01 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
2017-05-18 12:46:04 +02:00
|
|
|
, guessit
|
|
|
|
, babelfish
|
|
|
|
, enzyme
|
|
|
|
, beautifulsoup4
|
|
|
|
, requests
|
|
|
|
, click
|
|
|
|
, dogpile_cache
|
|
|
|
, stevedore
|
|
|
|
, chardet
|
|
|
|
, pysrt
|
|
|
|
, six
|
|
|
|
, appdirs
|
|
|
|
, rarfile
|
|
|
|
, pytz
|
|
|
|
, futures
|
2019-03-15 17:01:01 +01:00
|
|
|
, sympy
|
|
|
|
, vcrpy
|
|
|
|
, pytest
|
|
|
|
, pytestpep8
|
|
|
|
, pytest-flakes
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
2017-05-18 12:46:04 +02:00
|
|
|
}:
|
|
|
|
|
2019-03-15 17:01:01 +01:00
|
|
|
buildPythonPackage 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";
|
|
|
|
};
|
|
|
|
|
2019-03-15 17:01:01 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
guessit babelfish enzyme beautifulsoup4 requests
|
|
|
|
click dogpile_cache stevedore chardet pysrt six
|
|
|
|
appdirs rarfile pytz
|
|
|
|
] ++ lib.optional (!isPy3k) futures;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
sympy vcrpy pytest pytestpep8 pytest-flakes
|
|
|
|
pytestcov pytestrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
# https://github.com/Diaoul/subliminal/pull/963
|
2017-05-18 12:46:04 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-03-15 17:01:01 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Diaoul/subliminal";
|
2017-05-18 12:46:04 +02:00
|
|
|
description = "Python library to search and download subtitles";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|