git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19833 from 2chilled/master

pyload: init at stable

commitac75b9b2632ef47020a0e9349cb92629e85166ad authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateSat 29 Oct 2016, 19:14 (10 years ago) parent0896dbd9431130
3 files changed+62−2
pkgs/applications/networking/pyload/default.nix+54 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+6−2
pkgs/applications/networking/pyload/default.nixnew file+54
@@ -0,0 +1,54 @@
1+{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages, gocr, unrar, rhino, spidermonkey }:
2+pythonPackages.buildPythonApplication rec {
3+ version = "0.4.9-next";
4+ name = "pyLoad-" + version;
5+
6+ src = fetchFromGitHub {
7+ owner = "pyload";
8+ repo = "pyload";
9+ rev = "03f3ad9e39da2b9a378987693c4a69720e4084c7";
10+ sha256 = "0fgsz6yzxrlq3qvsyxsyzgmy4za35v1xh3i4drhispk9zb5jm1xx";
11+ };
12+
13+ patches =
14+ let
15+ # gets merged in next release version of pyload
16+ configParserPatch = fetchpatch {
17+ url = "https://patch-diff.githubusercontent.com/raw/pyload/pyload/pull/2625.diff";
18+ sha256 = "1bisgx78kcr5c0x0i3h0ch5mykns5wx5wx7gvjj0pc71lfzlxzb9";
19+ };
20+ setupPyPatch = fetchpatch {
21+ url = "https://patch-diff.githubusercontent.com/raw/pyload/pyload/pull/2638.diff";
22+ sha256 = "1gmvsmlcvb96g48kibv47cbmb5slivy3c5qflb5n0qc8k7axg3i9";
23+ };
24+ in [ configParserPatch setupPyPatch ];
25+
26+ buildInputs = [
27+ unrar rhino spidermonkey gocr pythonPackages.paver
28+ ];
29+
30+ propagatedBuildInputs = with pythonPackages; [
31+ pycurl jinja2 beaker thrift simplejson pycrypto feedparser pyqt4 gdbm
32+ tkinter beautifulsoup
33+ ];
34+
35+ #remove this once the PR patches above are merged. Needed because githubs diff endpoint
36+ #does not support diff -N
37+ prePatch = ''
38+ touch module/config/__init__.py
39+ '';
40+
41+ preBuild = ''
42+ paver generate_setup
43+ '';
44+
45+ doCheck = false;
46+
47+ meta = {
48+ description = "Free and open source downloader for 1-click-hosting sites";
49+ homepage = https://github.com/pyload/pyload;
50+ license = stdenv.lib.licenses.gpl3;
51+ maintainers = [ stdenv.lib.maintainers.mahe ];
52+ platforms = stdenv.lib.platforms.all;
53+ };
54+}
pkgs/top-level/all-packages.nix+2
@@ -17114,6 +17114,8 @@ in
1711417114
1711517115 pt = callPackage ../applications/misc/pt { };
1711617116
17117+ pyload = callPackage ../applications/networking/pyload {};
17118+
1711717119 uae = callPackage ../misc/emulators/uae { };
1711817120
1711917121 fsuae = callPackage ../misc/emulators/fs-uae { };
pkgs/top-level/python-packages.nix+6−2
@@ -19417,7 +19417,7 @@ in {
1941719417 sha256 = "0hqsap82zklhi5fxhc69kxrwzb0g9566f7sdpz7f9gyxkmyam839";
1941819418 };
1941919419
19420− propagatedBuildInputs = with self; [ pkgs.curl pkgs.openssl ];
19420+ propagatedBuildInputs = with self; [ pkgs.curl pkgs.openssl.out ];
1942119421
1942219422 # error: invalid command 'test'
1942319423 doCheck = false;
@@ -19427,6 +19427,11 @@ in {
1942719427 export PYCURL_SSL_LIBRARY=openssl
1942819428 '';
1942919429
19430+ #TODO no idea why this is needed
19431+ postInstall = ''
19432+ ln -s ${pkgs.openssl.out}/lib/libcrypto* $out/lib/
19433+ '';
19434+
1943019435 meta = {
1943119436 homepage = http://pycurl.sourceforge.net/;
1943219437 description = "Python wrapper for libcurl";
@@ -19434,7 +19439,6 @@ in {
1943419439 };
1943519440 });
1943619441
19437−
1943819442 pycurl2 = buildPythonPackage (rec {
1943919443 name = "pycurl2-7.20.0";
1944019444 disabled = isPy3k;