Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 51 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ 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; };}