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
{ lib
2
, buildPythonPackage
3
-
, pkgs
4
, fetchFromGitHub
5
, isPyPy
0
0
6
, pycrypto
7
, requests
8
-
, singledispatch ? null
9
-
, futures ? null
10
, isPy27
11
}:
12
13
buildPythonPackage rec {
0
14
version = "1.12.2";
15
-
pname = "livestreamer";
16
disabled = isPyPy;
17
18
src = fetchFromGitHub {
19
owner = "chrippa";
20
repo = "livestreamer";
21
-
rev = "v1.12.2";
22
sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0=";
23
};
24
25
-
nativeBuildInputs = [ pkgs.makeWrapper ];
26
27
-
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
28
-
++ lib.optionals isPy27 [ singledispatch futures ];
29
30
postInstall = ''
31
-
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
32
'';
33
34
meta = with lib; {
35
homepage = "http://livestreamer.tanuki.se";
36
-
description = ''
37
-
Livestreamer is CLI program that extracts streams from various
38
-
services and pipes them into a video player of choice.
39
-
'';
40
license = licenses.bsd2;
41
maintainers = with maintainers; [ ];
42
};
···
1
{ lib
2
, buildPythonPackage
0
3
, fetchFromGitHub
4
, isPyPy
5
+
, makeWrapper
6
+
, rtmpdump
7
, pycrypto
8
, requests
0
0
9
, isPy27
10
}:
11
12
buildPythonPackage rec {
13
+
pname = "livestreamer";
14
version = "1.12.2";
0
15
disabled = isPyPy;
16
17
src = fetchFromGitHub {
18
owner = "chrippa";
19
repo = "livestreamer";
20
+
rev = "v${version}";
21
sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0=";
22
};
23
24
+
nativeBuildInputs = [ makeWrapper ];
25
26
+
propagatedBuildInputs = [ rtmpdump pycrypto requests ];
0
27
28
postInstall = ''
29
+
wrapProgram $out/bin/livestreamer --prefix PATH : ${lib.makeBinPath [ rtmpdump ]}
30
'';
31
32
meta = with lib; {
33
homepage = "http://livestreamer.tanuki.se";
34
+
description = "Livestreamer is CLI program that extracts streams from various services and pipes them into a video player of choice";
0
0
0
35
license = licenses.bsd2;
36
maintainers = with maintainers; [ ];
37
};