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