tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
catt: override dependency releases
Fabian Affolter
4 years ago
aaf2a121
b5044c18
+41
-11
1 changed file
expand all
collapse all
unified
split
pkgs
applications
video
catt
default.nix
+41
-11
pkgs/applications/video/catt/default.nix
···
1
1
-
{ lib, python3 }:
1
1
+
{ lib
2
2
+
, fetchFromGitHub
3
3
+
, python3
4
4
+
}:
2
5
3
3
-
with python3.pkgs;
6
6
+
let
7
7
+
py = python3.override {
8
8
+
packageOverrides = self: super: {
9
9
+
# Upstream is pinning releases incl. dependencies of their dependencies
10
10
+
zeroconf = super.zeroconf.overridePythonAttrs (oldAttrs: rec {
11
11
+
version = "0.31.0";
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "jstasiak";
14
14
+
repo = "python-zeroconf";
15
15
+
rev = version;
16
16
+
sha256 = "158dqay74zvnz6kmpvip4ml0kw59nf2aaajwgaamx0zc8ci1p5pj";
17
17
+
};
18
18
+
});
19
19
+
20
20
+
click = super.click.overridePythonAttrs (oldAttrs: rec {
21
21
+
version = "7.1.2";
22
22
+
src = oldAttrs.src.override {
23
23
+
inherit version;
24
24
+
sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj";
25
25
+
};
26
26
+
});
27
27
+
28
28
+
PyChromecast = super.PyChromecast.overridePythonAttrs (oldAttrs: rec {
29
29
+
version = "9.2.0";
30
30
+
src = oldAttrs.src.override {
31
31
+
inherit version;
32
32
+
sha256 = "02ig2wf2yyrnnl88r2n13s1naskwsifwgx3syifmcxygflsmjd3d";
33
33
+
};
34
34
+
});
35
35
+
};
36
36
+
};
37
37
+
in
38
38
+
with py.pkgs;
4
39
5
40
buildPythonApplication rec {
6
41
pname = "catt";
7
42
version = "0.12.2";
8
43
44
44
+
disabled = python3.pythonOlder "3.4";
45
45
+
9
46
src = fetchPypi {
10
47
inherit pname version;
11
48
sha256 = "sha256-BOETKTkcbLOu5SubiejswU7D47qWS13QZ7rU9x3jf5Y=";
···
19
56
youtube-dl
20
57
];
21
58
22
22
-
# remove click when 0.12.3 is released
23
23
-
# upstream doesn't use zeroconf directly but pins it for pychromecast
24
24
-
postPatch = ''
25
25
-
substituteInPlace setup.py \
26
26
-
--replace "zeroconf==0.31.0" "" \
27
27
-
--replace "Click>=7.1.2,<8" "click"
28
28
-
'';
59
59
+
doCheck = false; # attempts to access various URLs
29
60
30
30
-
doCheck = false; # attempts to access various URLs
31
61
pythonImportsCheck = [ "catt" ];
32
62
33
63
meta = with lib; {
34
34
-
description = "Cast All The Things allows you to send videos from many, many online sources to your Chromecast";
64
64
+
description = "Tool to send media from online sources to Chromecast devices";
35
65
homepage = "https://github.com/skorokithakis/catt";
36
66
license = licenses.bsd2;
37
67
maintainers = with maintainers; [ dtzWill ];