git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #60170 from worldofpeace/lollypop-bump

lollypop: 1.0.5 -> 1.0.7, other stuff

commit07f96168e3e309d475d1121d697e08e641927801 authorworldofpeace <worldofpeace@users.noreply.github.com> dateFri 26 Apr 2019, 12:18 (8 years ago) parent6c28c29db9efc9
3 files changed+68−11
pkgs/applications/audio/lollypop/default.nix+29−11 pkgs/development/python-modules/wikipedia/default.nix+37 pkgs/top-level/python-packages.nix+2
pkgs/applications/audio/lollypop/default.nix+29−11
@@ -1,11 +1,27 @@
1−{ stdenv, fetchgit, meson, ninja, pkgconfig
2−, python3, gtk3, gst_all_1, libsecret, libsoup
3−, appstream-glib, desktop-file-utils, totem-pl-parser
4−, hicolor-icon-theme, gobject-introspection, wrapGAppsHook }:
1+{ lib
2+, fetchgit
3+, meson
4+, ninja
5+, pkgconfig
6+, python3
7+, gtk3
8+, gst_all_1
9+, libsecret
10+, libsoup
11+, appstream-glib
12+, desktop-file-utils
13+, totem-pl-parser
14+, hicolor-icon-theme
15+, gobject-introspection
16+, wrapGAppsHook
17+, lastFMSupport ? true
18+, wikipediaSupport ? true
19+, youtubeSupport ? true, youtube-dl
20+}:
521
622python3.pkgs.buildPythonApplication rec {
723 pname = "lollypop";
8− version = "1.0.5";
24+ version = "1.0.7";
925
1026 format = "other";
1127 doCheck = false;
@@ -14,7 +30,7 @@ python3.pkgs.buildPythonApplication rec {
1430 url = "https://gitlab.gnome.org/World/lollypop";
1531 rev = "refs/tags/${version}";
1632 fetchSubmodules = true;
17− sha256 = "1p6glzvbbha3cvq462ymbn1q58skclfk469kk28cr1hlsf5x2pry";
33+ sha256 = "0gdds4qssn32axsa5janqny5i4426azj5wyj6bzn026zs3z38svn";
1834 };
1935
2036 nativeBuildInputs = [
@@ -37,10 +53,9 @@ python3.pkgs.buildPythonApplication rec {
3753 gstreamer
3854 gtk3
3955 hicolor-icon-theme
40− libsecret
4156 libsoup
4257 totem-pl-parser
43− ];
58+ ] ++ lib.optional lastFMSupport libsecret;
4459
4560 propagatedBuildInputs = with python3.pkgs; [
4661 beautifulsoup4
@@ -49,8 +64,11 @@ python3.pkgs.buildPythonApplication rec {
4964 pycairo
5065 pydbus
5166 pygobject3
52− pylast
53− ];
67+ ]
68+ ++ lib.optional lastFMSupport pylast
69+ ++ lib.optional wikipediaSupport wikipedia
70+ ++ lib.optional youtubeSupport youtube-dl
71+ ;
5472
5573 postPatch = ''
5674 chmod +x meson_post_install.py
@@ -62,7 +80,7 @@ python3.pkgs.buildPythonApplication rec {
6280 patchPythonScript "$out/libexec/lollypop-sp"
6381 '';
6482
65− meta = with stdenv.lib; {
83+ meta = with lib; {
6684 description = "A modern music player for GNOME";
6785 homepage = https://wiki.gnome.org/Apps/Lollypop;
6886 license = licenses.gpl3Plus;
pkgs/development/python-modules/wikipedia/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, beautifulsoup4
5+, requests
6+, python
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "wikipedia";
11+ version = "1.4.0";
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2";
16+ };
17+
18+ propagatedBuildInputs = [
19+ beautifulsoup4
20+ requests
21+ ];
22+
23+ checkPhase = ''
24+ runHook preCheck
25+
26+ ${python.interpreter} -m unittest discover tests/ '*test.py'
27+
28+ runHook postCheck
29+ '';
30+
31+ meta = with lib; {
32+ description = "Wikipedia API for Python";
33+ homepage = https://github.com/goldsmith/Wikipedia;
34+ license = licenses.mit;
35+ maintainers = [ maintainers.worldofpeace ];
36+ };
37+}
pkgs/top-level/python-packages.nix+2
@@ -4434,6 +4434,8 @@ in {
44344434
44354435 wordfreq = callPackage ../development/python-modules/wordfreq { };
44364436
4437+ wikipedia = callPackage ../development/python-modules/wikipedia { };
4438+
44374439 magic-wormhole = callPackage ../development/python-modules/magic-wormhole { };
44384440
44394441 magic-wormhole-mailbox-server = callPackage ../development/python-modules/magic-wormhole-mailbox-server { };