Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 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, pytestpep8 24, pytest-flakes 25, pytestcov 26, pytestrunner 27}: 28 29buildPythonPackage rec { 30 pname = "subliminal"; 31 version = "2.1.0"; 32 33 src = fetchPypi { 34 inherit pname version; 35 sha256 = "12v2clnbic8320fjsvkg3xfxfa7x8inhjk61z00pzwx46g3rqhy6"; 36 }; 37 38 propagatedBuildInputs = [ 39 guessit babelfish enzyme beautifulsoup4 requests 40 click dogpile_cache stevedore chardet pysrt six 41 appdirs rarfile pytz 42 ] ++ lib.optional (!isPy3k) futures; 43 44 checkInputs = [ 45 sympy vcrpy pytest pytestpep8 pytest-flakes 46 pytestcov pytestrunner 47 ]; 48 49 # https://github.com/Diaoul/subliminal/pull/963 50 doCheck = false; 51 52 meta = with lib; { 53 homepage = "https://github.com/Diaoul/subliminal"; 54 description = "Python library to search and download subtitles"; 55 license = licenses.mit; 56 }; 57}