Merge pull request #60170 from worldofpeace/lollypop-bump

lollypop: 1.0.5 -> 1.0.7, other stuff
This commit is contained in:
worldofpeace 2019-04-26 12:18:40 -04:00 committed by GitHub
commit 07f96168e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 68 additions and 11 deletions

View File

@ -1,11 +1,27 @@
{ stdenv, fetchgit, meson, ninja, pkgconfig { lib
, python3, gtk3, gst_all_1, libsecret, libsoup , fetchgit
, appstream-glib, desktop-file-utils, totem-pl-parser , meson
, hicolor-icon-theme, gobject-introspection, wrapGAppsHook }: , ninja
, pkgconfig
, python3
, gtk3
, gst_all_1
, libsecret
, libsoup
, appstream-glib
, desktop-file-utils
, totem-pl-parser
, hicolor-icon-theme
, gobject-introspection
, wrapGAppsHook
, lastFMSupport ? true
, wikipediaSupport ? true
, youtubeSupport ? true, youtube-dl
}:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "lollypop"; pname = "lollypop";
version = "1.0.5"; version = "1.0.7";
format = "other"; format = "other";
doCheck = false; doCheck = false;
@ -14,7 +30,7 @@ python3.pkgs.buildPythonApplication rec {
url = "https://gitlab.gnome.org/World/lollypop"; url = "https://gitlab.gnome.org/World/lollypop";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "1p6glzvbbha3cvq462ymbn1q58skclfk469kk28cr1hlsf5x2pry"; sha256 = "0gdds4qssn32axsa5janqny5i4426azj5wyj6bzn026zs3z38svn";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -37,10 +53,9 @@ python3.pkgs.buildPythonApplication rec {
gstreamer gstreamer
gtk3 gtk3
hicolor-icon-theme hicolor-icon-theme
libsecret
libsoup libsoup
totem-pl-parser totem-pl-parser
]; ] ++ lib.optional lastFMSupport libsecret;
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4 beautifulsoup4
@ -49,8 +64,11 @@ python3.pkgs.buildPythonApplication rec {
pycairo pycairo
pydbus pydbus
pygobject3 pygobject3
pylast ]
]; ++ lib.optional lastFMSupport pylast
++ lib.optional wikipediaSupport wikipedia
++ lib.optional youtubeSupport youtube-dl
;
postPatch = '' postPatch = ''
chmod +x meson_post_install.py chmod +x meson_post_install.py
@ -62,7 +80,7 @@ python3.pkgs.buildPythonApplication rec {
patchPythonScript "$out/libexec/lollypop-sp" patchPythonScript "$out/libexec/lollypop-sp"
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "A modern music player for GNOME"; description = "A modern music player for GNOME";
homepage = https://wiki.gnome.org/Apps/Lollypop; homepage = https://wiki.gnome.org/Apps/Lollypop;
license = licenses.gpl3Plus; license = licenses.gpl3Plus;

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, beautifulsoup4
, requests
, python
}:
buildPythonPackage rec {
pname = "wikipedia";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2";
};
propagatedBuildInputs = [
beautifulsoup4
requests
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover tests/ '*test.py'
runHook postCheck
'';
meta = with lib; {
description = "Wikipedia API for Python";
homepage = https://github.com/goldsmith/Wikipedia;
license = licenses.mit;
maintainers = [ maintainers.worldofpeace ];
};
}

View File

@ -4434,6 +4434,8 @@ in {
wordfreq = callPackage ../development/python-modules/wordfreq { }; wordfreq = callPackage ../development/python-modules/wordfreq { };
wikipedia = callPackage ../development/python-modules/wikipedia { };
magic-wormhole = callPackage ../development/python-modules/magic-wormhole { }; magic-wormhole = callPackage ../development/python-modules/magic-wormhole { };
magic-wormhole-mailbox-server = callPackage ../development/python-modules/magic-wormhole-mailbox-server { }; magic-wormhole-mailbox-server = callPackage ../development/python-modules/magic-wormhole-mailbox-server { };