nixpkgs/pkgs/by-name/ca/catt/package.nix

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

71 lines
1.4 KiB
Nix
Raw Normal View History

2021-09-21 09:41:20 +01:00
{ lib
2023-05-25 19:37:59 +01:00
, fetchPypi
, 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 {
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";
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;
hash = "sha256-0bqYYfWwF7yYoAbjZPhi/f4CLcL89imWGYaMi5Bwhtc=";
2019-10-24 09:04:56 +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; [
poetry-core
];
2024-03-07 00:28:00 +00:00
propagatedBuildInputs = with python.pkgs; [
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 = [ ];
2023-11-27 01:17:53 +00:00
mainProgram = "catt";
2019-10-24 09:04:56 +01:00
};
}