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

57 lines
1005 B
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
, pytest-flakes
, pytestcov
, pytestrunner
2017-05-18 11:46:04 +01:00
}:
buildPythonPackage rec {
pname = "subliminal";
version = "2.1.0";
2017-05-18 11:46:04 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "12v2clnbic8320fjsvkg3xfxfa7x8inhjk61z00pzwx46g3rqhy6";
2017-05-18 11:46:04 +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 pytest-flakes
pytestcov pytestrunner
];
# https://github.com/Diaoul/subliminal/pull/963
2017-05-18 11:46:04 +01:00
doCheck = false;
meta = with lib; {
homepage = "https://github.com/Diaoul/subliminal";
2017-05-18 11:46:04 +01:00
description = "Python library to search and download subtitles";
license = licenses.mit;
};
}