nixpkgs/pkgs/applications/video/catt/default.nix

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

51 lines
1.0 KiB
Nix
Raw Normal View History

2021-09-21 11:41:20 +03:00
{ lib
2023-05-25 21:37:59 +03:00
, fetchPypi
, fetchpatch
2021-09-21 11:41:20 +03:00
, python3
}:
2019-10-24 11:04:56 +03:00
python3.pkgs.buildPythonApplication rec {
2019-10-24 11:04:56 +03:00
pname = "catt";
version = "0.12.11";
format = "pyproject";
2021-09-21 11:41:20 +03:00
2019-10-24 11:04:56 +03:00
src = fetchPypi {
inherit pname version;
hash = "sha256-0bqYYfWwF7yYoAbjZPhi/f4CLcL89imWGYaMi5Bwhtc=";
2019-10-24 11:04:56 +03:00
};
patches = [
(fetchpatch {
# set explicit build-system
url = "https://github.com/skorokithakis/catt/commit/08e7870a239e85badd30982556adc2aa8a8e4fc1.patch";
hash = "sha256-QH5uN3zQNVPP6Th2LHdDBF53WxwMhoyhhQUAZOeHh4k=";
})
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
2021-02-22 22:14:25 +03:00
click
ifaddr
pychromecast
2022-06-13 13:55:11 +03:00
protobuf
2021-02-22 22:14:25 +03:00
requests
2022-06-13 13:55:11 +03:00
yt-dlp
2019-10-24 11:04:56 +03:00
];
doCheck = false; # attempts to access various URLs
2021-09-21 11:41:20 +03:00
2022-06-13 13:55:11 +03:00
pythonImportsCheck = [
"catt"
];
2019-10-24 11:04:56 +03:00
meta = with lib; {
2021-09-21 11:41:20 +03:00
description = "Tool to send media from online sources to Chromecast devices";
2019-10-24 11:04:56 +03:00
homepage = "https://github.com/skorokithakis/catt";
license = licenses.bsd2;
maintainers = with maintainers; [ dtzWill ];
};
}