Files
nixpkgs/pkgs/development/python-modules/subliminal/default.nix
T

58 lines
1.0 KiB
Nix
Raw Normal View History

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";
2020-05-09 20:55:46 +00:00
version = "2.1.0";
2017-05-18 12:46:04 +02:00
2018-06-23 15:27:58 +02:00
src = fetchPypi {
inherit pname version;
2020-05-09 20:55:46 +00:00
sha256 = "12v2clnbic8320fjsvkg3xfxfa7x8inhjk61z00pzwx46g3rqhy6";
2017-05-18 12:46:04 +02:00
};
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;
2017-05-18 12:46:04 +02:00
2019-03-15 17:01:01 +01:00
checkInputs = [
sympy vcrpy pytest pytestpep8 pytest-flakes
pytestcov pytestrunner
];
# https://github.com/Diaoul/subliminal/pull/963
doCheck = false;
meta = with lib; {
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;
};
}