Merge pull request #58970 from eyJhb/curseradio

curseradio: init at 0.2
This commit is contained in:
worldofpeace 2019-04-05 15:52:08 -04:00 committed by GitHub
commit c794bdaf0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, substituteAll, python3Packages, mpv }:
python3Packages.buildPythonApplication rec {
version = "0.2";
pname = "curseradio";
src = fetchFromGitHub {
owner = "chronitis";
repo = pname;
rev = "1bd4bd0faeec675e0647bac9a100b526cba19f8d";
sha256 = "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i";
};
propagatedBuildInputs = with python3Packages; [
requests
lxml
pyxdg
];
patches = [
(substituteAll {
src = ./mpv.patch;
inherit mpv;
})
];
# No tests
doCheck = false;
meta = with stdenv.lib; {
description = "Command line radio player";
homepage = "https://github.com/chronitis/curseradio";
license = licenses.mit;
maintainers = [ maintainers.eyjhb ];
};
}

View file

@ -0,0 +1,11 @@
--- a/curseradio/curseradio.py
+++ b/curseradio/curseradio.py
@@ -30,7 +30,7 @@ import re
CONFIG_DEFAULT = {
'opml': {'root': "http://opml.radiotime.com/"},
- 'playback': {'command': '/usr/bin/mpv'},
+ 'playback': {'command': '@mpv@/bin/mpv'},
'interface': {'keymap': 'default'},
'keymap.default': {
'up': 'KEY_UP',

View file

@ -16771,6 +16771,8 @@ in
cuneiform = callPackage ../tools/graphics/cuneiform {};
curseradio = callPackage ../applications/audio/curseradio { };
cutecom = libsForQt5.callPackage ../tools/misc/cutecom { };
cutegram =