2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-09-22 15:38:15 +00:00
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-22 15:38:15 +00: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;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-8pYbIkPsg16VelwqpYSzqfAJaCU37lun+XZ/crzCDZU=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
click = super.click.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "7.1.2";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
pychromecast = super.pychromecast.overridePythonAttrs (oldAttrs: rec {
|
2021-09-22 15:38:15 +00:00
|
|
|
version = "9.2.0";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-bTRZNXXPd1Zd9Hr0x13UfGplgx7BiowQtTZ7LxwXLwo=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
with py.pkgs;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "catt";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.12.7";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "setuptools";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-Q9ePWRLwuuTG+oPKFg7xn1gj4uAVlXUxegWdyH3Yd90=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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 ];
|
|
|
|
};
|
|
|
|
}
|