@@ -0,0 +1,36 @@
1+{ stdenv, fetchFromGitHub, substituteAll, python3Packages, mpv }:
2+
3+python3Packages.buildPythonApplication rec {
4+ version = "0.2";
5+ pname = "curseradio";
6+
7+ src = fetchFromGitHub {
8+ owner = "chronitis";
9+ repo = pname;
10+ rev = "1bd4bd0faeec675e0647bac9a100b526cba19f8d";
11+ sha256 = "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i";
12+ };
13+
14+ propagatedBuildInputs = with python3Packages; [
15+ requests
16+ lxml
17+ pyxdg
18+ ];
19+
20+ patches = [
21+ (substituteAll {
22+ src = ./mpv.patch;
23+ inherit mpv;
24+ })
25+ ];
26+
27+ # No tests
28+ doCheck = false;
29+
30+ meta = with stdenv.lib; {
31+ description = "Command line radio player";
32+ homepage = "https://github.com/chronitis/curseradio";
33+ license = licenses.mit;
34+ maintainers = [ maintainers.eyjhb ];
35+ };
36+}