2020-09-30 15:00:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages, gocr, unrar, rhino, spidermonkey_38 }:
|
2017-10-28 15:03:17 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
beautifulsoup = pythonPackages.callPackage ./beautifulsoup.nix {
|
|
|
|
inherit pythonPackages;
|
|
|
|
};
|
|
|
|
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2016-10-16 11:59:53 +01:00
|
|
|
version = "0.4.9-next";
|
|
|
|
name = "pyLoad-" + version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyload";
|
|
|
|
repo = "pyload";
|
2016-11-26 15:20:02 +00:00
|
|
|
rev = "721ea9f089217b9cb0f2799c051116421faac081";
|
|
|
|
sha256 = "1ad4r9slx1wgvd2fs4plfbpzi4i2l2bk0lybzsb2ncgh59m87h54";
|
2016-10-16 11:59:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches =
|
|
|
|
let
|
|
|
|
# gets merged in next release version of pyload
|
|
|
|
configParserPatch = fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/pyload/pyload/pull/2625.diff";
|
|
|
|
sha256 = "1bisgx78kcr5c0x0i3h0ch5mykns5wx5wx7gvjj0pc71lfzlxzb9";
|
|
|
|
};
|
|
|
|
setupPyPatch = fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/pyload/pyload/pull/2638.diff";
|
2016-10-30 12:11:32 +00:00
|
|
|
sha256 = "006g4qbl582262ariflbyfrszcx8ck2ac1cpry1f82f76p4cgf6z";
|
2016-10-16 11:59:53 +01:00
|
|
|
};
|
|
|
|
in [ configParserPatch setupPyPatch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-09-30 15:00:56 +01:00
|
|
|
unrar rhino spidermonkey_38 gocr pythonPackages.paver
|
2016-10-16 11:59:53 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2016-10-30 12:11:32 +00:00
|
|
|
pycurl jinja2 beaker thrift simplejson pycrypto feedparser tkinter
|
2016-11-26 15:20:02 +00:00
|
|
|
beautifulsoup send2trash
|
2016-10-16 11:59:53 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
#remove this once the PR patches above are merged. Needed because githubs diff endpoint
|
|
|
|
#does not support diff -N
|
|
|
|
prePatch = ''
|
|
|
|
touch module/config/__init__.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
2019-08-02 17:03:55 +01:00
|
|
|
${pythonPackages.paver}/bin/paver generate_setup
|
2016-10-16 11:59:53 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-08-02 17:03:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-10-16 11:59:53 +01:00
|
|
|
description = "Free and open source downloader for 1-click-hosting sites";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pyload/pyload";
|
2019-08-02 17:03:55 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.mahe ];
|
|
|
|
platforms = platforms.all;
|
2016-10-16 11:59:53 +01:00
|
|
|
};
|
|
|
|
}
|