2021-09-21 09:41:20 +01:00
|
|
|
{ lib
|
2023-05-25 19:37:59 +01:00
|
|
|
, fetchPypi
|
2023-09-19 15:02:04 +01:00
|
|
|
, fetchpatch
|
2021-09-21 09:41:20 +01:00
|
|
|
, python3
|
|
|
|
}:
|
2019-10-24 09:04:56 +01:00
|
|
|
|
2024-03-07 00:28:00 +00:00
|
|
|
let
|
|
|
|
python = python3.override {
|
2024-08-02 12:10:35 +01:00
|
|
|
self = python;
|
2024-03-07 00:28:00 +00:00
|
|
|
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 {
|
2019-10-24 09:04:56 +01:00
|
|
|
pname = "catt";
|
2023-09-19 15:02:04 +01:00
|
|
|
version = "0.12.11";
|
|
|
|
format = "pyproject";
|
2021-09-21 09:41:20 +01:00
|
|
|
|
2019-10-24 09:04:56 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-09-19 15:02:04 +01:00
|
|
|
hash = "sha256-0bqYYfWwF7yYoAbjZPhi/f4CLcL89imWGYaMi5Bwhtc=";
|
2019-10-24 09:04:56 +01:00
|
|
|
};
|
|
|
|
|
2023-09-19 15:02:04 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# set explicit build-system
|
|
|
|
url = "https://github.com/skorokithakis/catt/commit/08e7870a239e85badd30982556adc2aa8a8e4fc1.patch";
|
|
|
|
hash = "sha256-QH5uN3zQNVPP6Th2LHdDBF53WxwMhoyhhQUAZOeHh4k=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-03-07 00:28:00 +00:00
|
|
|
nativeBuildInputs = with python.pkgs; [
|
2023-09-19 15:02:04 +01:00
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2024-03-07 00:28:00 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2021-02-22 19:14:25 +00:00
|
|
|
click
|
|
|
|
ifaddr
|
2023-02-19 17:38:13 +00:00
|
|
|
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;
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "catt";
|
2019-10-24 09:04:56 +01:00
|
|
|
};
|
|
|
|
}
|