depot/third_party/nixpkgs/pkgs/development/python-modules/pychromecast/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

51 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, casttube
, fetchPypi
, pythonOlder
, protobuf
, requests
, zeroconf
}:
buildPythonPackage rec {
pname = "pychromecast";
version = "13.0.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "PyChromecast";
inherit version;
hash = "sha256-DemOnlvkMmndQe+xYSarDVupQcpKyuAkMpcShRwMAyQ=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "protobuf>=3.19.1,<4" "protobuf>=3.19.1"
'';
propagatedBuildInputs = [
casttube
protobuf
requests
zeroconf
];
# no tests available
doCheck = false;
pythonImportsCheck = [
"pychromecast"
];
meta = with lib; {
description = "Library for Python to communicate with the Google Chromecast";
homepage = "https://github.com/home-assistant-libs/pychromecast";
changelog = "https://github.com/home-assistant-libs/pychromecast/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ abbradar ];
platforms = platforms.unix;
};
}