2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchpatch
|
2021-09-22 15:38:15 +00:00
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
pychromecast = super.pychromecast.overridePythonAttrs (_: rec {
|
|
|
|
version = "13.1.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "PyChromecast";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-COYai1S9IRnTyasewBNtPYVjqpfgo7V4QViLm+YMJnY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "";
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "catt";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.12.11";
|
|
|
|
format = "pyproject";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-0bqYYfWwF7yYoAbjZPhi/f4CLcL89imWGYaMi5Bwhtc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# set explicit build-system
|
|
|
|
url = "https://github.com/skorokithakis/catt/commit/08e7870a239e85badd30982556adc2aa8a8e4fc1.patch";
|
|
|
|
hash = "sha256-QH5uN3zQNVPP6Th2LHdDBF53WxwMhoyhhQUAZOeHh4k=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = with python.pkgs; [
|
2023-11-16 04:20:00 +00:00
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2021-02-22 21:28:39 +00:00
|
|
|
click
|
|
|
|
ifaddr
|
2023-03-15 16:39:30 +00:00
|
|
|
pychromecast
|
2022-06-16 17:23:12 +00:00
|
|
|
protobuf
|
2021-02-22 21:28:39 +00:00
|
|
|
requests
|
2022-06-16 17:23:12 +00:00
|
|
|
yt-dlp
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # attempts to access various URLs
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"catt"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-09-22 15:38:15 +00:00
|
|
|
description = "Tool to send media from online sources to Chromecast devices";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/skorokithakis/catt";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "catt";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|