From db3e2983a680dad22081f86142766b9eecb2c63e Mon Sep 17 00:00:00 2001 From: Unai Zalakain Date: Thu, 18 May 2017 12:46:04 +0200 Subject: [PATCH] subliminal: init at 2.0.5 --- .../python-modules/subliminal/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/subliminal/default.nix diff --git a/pkgs/development/python-modules/subliminal/default.nix b/pkgs/development/python-modules/subliminal/default.nix new file mode 100644 index 000000000000..545916858d4a --- /dev/null +++ b/pkgs/development/python-modules/subliminal/default.nix @@ -0,0 +1,41 @@ +{ stdenv +, fetchurl +, buildPythonApplication +, guessit +, babelfish +, enzyme +, beautifulsoup4 +, requests +, click +, dogpile_cache +, stevedore +, chardet +, pysrt +, six +, appdirs +, rarfile +, pytz +, futures +}: + +buildPythonApplication rec { + name = "subliminal-${version}"; + version = "2.0.5"; + + src = fetchurl { + url = "mirror://pypi/s/subliminal/${name}.tar.gz"; + sha256 = "1dzv5csjcwgz69aimarx2c6606ckm2gbn4x2mzydcqnyai7sayhl"; + }; + + # Too many test dependencies + doCheck = false; + propagatedBuildInputs = [ guessit babelfish enzyme beautifulsoup4 requests + click dogpile_cache stevedore chardet pysrt six + appdirs rarfile pytz futures ]; + + meta = with stdenv.lib; { + homepage = https://github.com/Diaoul/subliminal; + description = "Python library to search and download subtitles"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 97242e9e9f97..a1eed6bb3d5b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9345,6 +9345,8 @@ in { }; }; + subliminal = callPackage ../development/python-modules/subliminal {}; + hyp = buildPythonPackage rec { name = "hyp-server-${version}"; version = "1.2.0";