tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python39Packages.livestreamer: cleanup, remove python2
Sandro Jäckel
4 years ago
955a657d
7615b74c
+8
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
livestreamer
default.nix
+8
-13
pkgs/development/python-modules/livestreamer/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
-
, pkgs
4
3
, fetchFromGitHub
5
4
, isPyPy
5
5
+
, makeWrapper
6
6
+
, rtmpdump
6
7
, pycrypto
7
8
, requests
8
8
-
, singledispatch ? null
9
9
-
, futures ? null
10
9
, isPy27
11
10
}:
12
11
13
12
buildPythonPackage rec {
13
13
+
pname = "livestreamer";
14
14
version = "1.12.2";
15
15
-
pname = "livestreamer";
16
15
disabled = isPyPy;
17
16
18
17
src = fetchFromGitHub {
19
18
owner = "chrippa";
20
19
repo = "livestreamer";
21
21
-
rev = "v1.12.2";
20
20
+
rev = "v${version}";
22
21
sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0=";
23
22
};
24
23
25
25
-
nativeBuildInputs = [ pkgs.makeWrapper ];
24
24
+
nativeBuildInputs = [ makeWrapper ];
26
25
27
27
-
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
28
28
-
++ lib.optionals isPy27 [ singledispatch futures ];
26
26
+
propagatedBuildInputs = [ rtmpdump pycrypto requests ];
29
27
30
28
postInstall = ''
31
31
-
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
29
29
+
wrapProgram $out/bin/livestreamer --prefix PATH : ${lib.makeBinPath [ rtmpdump ]}
32
30
'';
33
31
34
32
meta = with lib; {
35
33
homepage = "http://livestreamer.tanuki.se";
36
36
-
description = ''
37
37
-
Livestreamer is CLI program that extracts streams from various
38
38
-
services and pipes them into a video player of choice.
39
39
-
'';
34
34
+
description = "Livestreamer is CLI program that extracts streams from various services and pipes them into a video player of choice";
40
35
license = licenses.bsd2;
41
36
maintainers = with maintainers; [ ];
42
37
};