2016-12-31 09:02:30 +00:00
|
|
|
{ lib
|
|
|
|
, pythonPackages
|
|
|
|
, fetchurl
|
|
|
|
, transmission
|
|
|
|
, deluge
|
|
|
|
, config
|
|
|
|
}:
|
|
|
|
|
|
|
|
with pythonPackages;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-01-04 08:34:16 +00:00
|
|
|
version = "2.8.17";
|
2016-12-31 09:02:30 +00:00
|
|
|
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";
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
|
|
|
|
2017-01-04 08:34:16 +00:00
|
|
|
# Requires vcrpy
|
2016-12-31 09:02:30 +00:00
|
|
|
doCheck = false;
|
2017-01-04 08:34:16 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2017-01-04 08:34:16 +00:00
|
|
|
buildInputs = [ pytest mock ];
|
2016-12-31 09:02:30 +00:00
|
|
|
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 ]
|
2016-12-31 09:02:30 +00:00
|
|
|
# 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 ];
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
2017-01-04 08:34:16 +00:00
|
|
|
}
|