Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 56 lines 1.0 kB view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, isPy3k 5, guessit 6, babelfish 7, enzyme 8, beautifulsoup4 9, requests 10, click 11, dogpile_cache 12, stevedore 13, chardet 14, pysrt 15, six 16, appdirs 17, rarfile 18, pytz 19, futures 20, sympy 21, vcrpy 22, pytest 23, pytest-flakes 24, pytestcov 25, pytestrunner 26}: 27 28buildPythonPackage rec { 29 pname = "subliminal"; 30 version = "2.1.0"; 31 32 src = fetchPypi { 33 inherit pname version; 34 sha256 = "12v2clnbic8320fjsvkg3xfxfa7x8inhjk61z00pzwx46g3rqhy6"; 35 }; 36 37 propagatedBuildInputs = [ 38 guessit babelfish enzyme beautifulsoup4 requests 39 click dogpile_cache stevedore chardet pysrt six 40 appdirs rarfile pytz 41 ] ++ lib.optional (!isPy3k) futures; 42 43 checkInputs = [ 44 sympy vcrpy pytest pytest-flakes 45 pytestcov pytestrunner 46 ]; 47 48 # https://github.com/Diaoul/subliminal/pull/963 49 doCheck = false; 50 51 meta = with lib; { 52 homepage = "https://github.com/Diaoul/subliminal"; 53 description = "Python library to search and download subtitles"; 54 license = licenses.mit; 55 }; 56}