3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/catt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.6 KiB
Nix
Raw Normal View History

2021-09-21 09:41:20 +01:00
{ lib
, fetchFromGitHub
, python3
}:
2019-10-24 09:04:56 +01:00
2021-09-21 09:41:20 +01:00
let
py = python3.override {
packageOverrides = self: super: {
# Upstream is pinning releases incl. dependencies of their dependencies
zeroconf = super.zeroconf.overridePythonAttrs (oldAttrs: rec {
version = "0.31.0";
src = fetchFromGitHub {
owner = "jstasiak";
repo = "python-zeroconf";
rev = version;
sha256 = "158dqay74zvnz6kmpvip4ml0kw59nf2aaajwgaamx0zc8ci1p5pj";
};
});
click = super.click.overridePythonAttrs (oldAttrs: rec {
version = "7.1.2";
src = oldAttrs.src.override {
inherit version;
sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj";
};
});
PyChromecast = super.PyChromecast.overridePythonAttrs (oldAttrs: rec {
version = "9.2.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "02ig2wf2yyrnnl88r2n13s1naskwsifwgx3syifmcxygflsmjd3d";
};
});
};
};
in
with py.pkgs;
2020-08-27 16:45:27 +01:00
2021-02-22 19:14:25 +00:00
buildPythonApplication rec {
2019-10-24 09:04:56 +01:00
pname = "catt";
2022-06-13 11:55:11 +01:00
version = "0.12.7";
2021-09-21 09:41:20 +01:00
2019-10-24 09:04:56 +01:00
src = fetchPypi {
inherit pname version;
2022-06-13 11:55:11 +01:00
hash = "sha256-Q9ePWRLwuuTG+oPKFg7xn1gj4uAVlXUxegWdyH3Yd90=";
2019-10-24 09:04:56 +01:00
};
propagatedBuildInputs = [
2021-02-22 19:14:25 +00:00
click
ifaddr
PyChromecast
2022-06-13 11:55:11 +01:00
protobuf
2021-02-22 19:14:25 +00:00
requests
2022-06-13 11:55:11 +01:00
yt-dlp
2019-10-24 09:04:56 +01:00
];
doCheck = false; # attempts to access various URLs
2021-09-21 09:41:20 +01:00
2022-06-13 11:55:11 +01:00
pythonImportsCheck = [
"catt"
];
2019-10-24 09:04:56 +01:00
meta = with lib; {
2021-09-21 09:41:20 +01:00
description = "Tool to send media from online sources to Chromecast devices";
2019-10-24 09:04:56 +01:00
homepage = "https://github.com/skorokithakis/catt";
license = licenses.bsd2;
maintainers = with maintainers; [ dtzWill ];
};
}