nixpkgs/pkgs/applications/networking/flexget/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, pythonPackages
, fetchurl
, transmission
, deluge
, config
}:
with pythonPackages;
buildPythonPackage rec {
2017-01-04 08:34:16 +00:00
version = "2.8.17";
name = "FlexGet-${version}";
src = fetchurl {
2017-01-04 08:34:16 +00:00
url = "https://github.com/Flexget/Flexget/archive/${version}.tar.gz";
sha256 = "925e6bf62dfae73194dbf8b963ff2b60fb500f2457463b744086706da94dabd7";
};
2017-01-04 08:34:16 +00:00
# Requires vcrpy
doCheck = false;
2017-01-04 08:34:16 +00:00
checkPhase = ''
py.test
'';
2017-01-04 08:34:16 +00:00
buildInputs = [ pytest mock ];
propagatedBuildInputs = [
2017-01-04 08:34:16 +00:00
feedparser sqlalchemy pyyaml
beautifulsoup4 html5lib pyrss2gen pynzb
rpyc jinja2 requests2 dateutil jsonschema
pathpy pathlib guessit apscheduler
terminaltables colorclass
cherrypy flask flask-restful flask-restplus
flask-compress flask_login flask-cors
pyparsing safe future ]
# enable deluge and transmission plugin support, if they're installed
++ lib.optional (config.deluge or false) deluge
++ lib.optional (transmission != null) transmissionrpc;
meta = {
homepage = http://flexget.com/;
description = "Multipurpose automation tool for content like torrents";
2016-12-31 09:09:16 +00:00
license = lib.licenses.mit;
2017-01-04 08:34:16 +00:00
maintainers = with lib.maintainers; [ domenkozar tari ];
};
2017-01-04 08:34:16 +00:00
}