added gpodder package
This commit is contained in:
parent
5c0659f2b4
commit
eeeed00950
32
pkgs/applications/audio/gpodder/default.nix
Normal file
32
pkgs/applications/audio/gpodder/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ pkgs, stdenv, fetchurl, python, buildPythonPackage, pythonPackages, mygpoclient, intltool,
|
||||||
|
ipodSupport ? true, libgpod, gpodderHome ? "", gpodderDownloadDir ? "" }:
|
||||||
|
|
||||||
|
with pkgs.lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (pythonPackages) coverage feedparser minimock sqlite3 dbus pygtk eyeD3;
|
||||||
|
|
||||||
|
in buildPythonPackage rec {
|
||||||
|
name = "gpodder-3.7.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://gpodder.org/src/${name}.tar.gz";
|
||||||
|
sha256 = "fa90ef4bdd3fd9eef95404f7f43f70912ae3ab4f8d24078484a2f3e11b14dc47";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ coverage feedparser minimock sqlite3 mygpoclient intltool ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ feedparser dbus mygpoclient sqlite3 pygtk eyeD3 ]
|
||||||
|
++ stdenv.lib.optional ipodSupport libgpod;
|
||||||
|
|
||||||
|
postPatch = "sed -ie 's/PYTHONPATH=src/PYTHONPATH=\$(PYTHONPATH):src/' makefile";
|
||||||
|
|
||||||
|
checkPhase = "make unittest";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
DESTDIR=/ PREFIX=$out make install
|
||||||
|
wrapProgram $out/bin/gpodder \
|
||||||
|
${optionalString (gpodderHome != "") "--set GPODDER_HOME ${gpodderHome}"} \
|
||||||
|
${optionalString (gpodderDownloadDir != "") "--set GPODDER_DOWNLOAD_DIR ${gpodderDownloadDir}"}
|
||||||
|
'';
|
||||||
|
}
|
14
pkgs/development/python-modules/mygpoclient/default.nix
Normal file
14
pkgs/development/python-modules/mygpoclient/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ stdenv, fetchurl, python, buildPythonPackage, pythonPackages }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "mygpoclient-1.7";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://thp.io/2010/mygpoclient/${name}.tar.gz";
|
||||||
|
sha256 = "6a0b7b1fe2b046875456e14eda3e42430e493bf2251a64481cf4fd1a1e21a80e";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pythonPackages.nose pythonPackages.minimock ];
|
||||||
|
|
||||||
|
checkPhase = "make test";
|
||||||
|
}
|
@ -1165,6 +1165,8 @@ let
|
|||||||
|
|
||||||
gource = callPackage ../applications/version-management/gource {};
|
gource = callPackage ../applications/version-management/gource {};
|
||||||
|
|
||||||
|
gpodder = callPackage ../applications/audio/gpodder { };
|
||||||
|
|
||||||
gptfdisk = callPackage ../tools/system/gptfdisk { };
|
gptfdisk = callPackage ../tools/system/gptfdisk { };
|
||||||
|
|
||||||
grafana = callPackage ../development/tools/misc/grafana { };
|
grafana = callPackage ../development/tools/misc/grafana { };
|
||||||
@ -5737,6 +5739,8 @@ let
|
|||||||
|
|
||||||
muparser = callPackage ../development/libraries/muparser { };
|
muparser = callPackage ../development/libraries/muparser { };
|
||||||
|
|
||||||
|
mygpoclient = callPackage ../development/python-modules/mygpoclient { };
|
||||||
|
|
||||||
mygui = callPackage ../development/libraries/mygui {};
|
mygui = callPackage ../development/libraries/mygui {};
|
||||||
|
|
||||||
myguiSvn = callPackage ../development/libraries/mygui/svn.nix {};
|
myguiSvn = callPackage ../development/libraries/mygui/svn.nix {};
|
||||||
|
@ -4305,6 +4305,19 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
minimock = buildPythonPackage rec {
|
||||||
|
version = "1.2.8";
|
||||||
|
name = "minimock-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://bitbucket.org/jab/minimock/get/${version}.zip";
|
||||||
|
sha256 = "c88fa8a7120623f23990a7f086a9657f6ced09025a55e3be8649a30b4945441a";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ nose ];
|
||||||
|
|
||||||
|
checkPhase = "./test";
|
||||||
|
};
|
||||||
|
|
||||||
mitmproxy = buildPythonPackage rec {
|
mitmproxy = buildPythonPackage rec {
|
||||||
baseName = "mitmproxy";
|
baseName = "mitmproxy";
|
||||||
|
Loading…
Reference in New Issue
Block a user