3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/subliminal/default.nix

58 lines
1 KiB
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
2017-05-18 11:46:04 +01:00
, guessit
, babelfish
, enzyme
, beautifulsoup4
, requests
, click
, dogpile_cache
, stevedore
, chardet
, pysrt
, six
, appdirs
, rarfile
, pytz
, futures
, sympy
, vcrpy
, pytest
, pytestpep8
, pytest-flakes
, pytestcov
, pytestrunner
2017-05-18 11:46:04 +01:00
}:
buildPythonPackage rec {
pname = "subliminal";
2017-05-18 11:46:04 +01:00
version = "2.0.5";
src = fetchPypi {
inherit pname version;
2017-05-18 11:46:04 +01:00
sha256 = "1dzv5csjcwgz69aimarx2c6606ckm2gbn4x2mzydcqnyai7sayhl";
};
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 11:46:04 +01:00
doCheck = false;
meta = with lib; {
2017-05-18 11:46:04 +01:00
homepage = https://github.com/Diaoul/subliminal;
description = "Python library to search and download subtitles";
license = licenses.mit;
};
}