2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, guessit
|
|
|
|
, babelfish
|
|
|
|
, enzyme
|
|
|
|
, beautifulsoup4
|
|
|
|
, requests
|
|
|
|
, click
|
2021-12-06 16:07:01 +00:00
|
|
|
, dogpile-cache
|
2020-04-24 23:36:52 +00:00
|
|
|
, stevedore
|
|
|
|
, chardet
|
|
|
|
, pysrt
|
|
|
|
, six
|
|
|
|
, appdirs
|
|
|
|
, rarfile
|
|
|
|
, pytz
|
|
|
|
, sympy
|
|
|
|
, vcrpy
|
|
|
|
, pytest
|
|
|
|
, pytest-flakes
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
|
|
|
, pytest-runner
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "subliminal";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "2.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "12v2clnbic8320fjsvkg3xfxfa7x8inhjk61z00pzwx46g3rqhy6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
guessit babelfish enzyme beautifulsoup4 requests
|
2021-12-06 16:07:01 +00:00
|
|
|
click dogpile-cache stevedore chardet pysrt six
|
2020-04-24 23:36:52 +00:00
|
|
|
appdirs rarfile pytz
|
2021-06-06 07:54:09 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-12-25 13:55:36 +00:00
|
|
|
sympy vcrpy pytest pytest-flakes
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov pytest-runner
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# https://github.com/Diaoul/subliminal/pull/963
|
|
|
|
doCheck = false;
|
2021-06-06 07:54:09 +00:00
|
|
|
pythonImportsCheck = [ "subliminal" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Diaoul/subliminal";
|
|
|
|
description = "Python library to search and download subtitles";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|