catt: override dependency releases

+41 -11
+41 -11
pkgs/applications/video/catt/default.nix
··· 1 - { lib, python3 }: 1 + { lib 2 + , fetchFromGitHub 3 + , python3 4 + }: 2 5 3 - with python3.pkgs; 6 + let 7 + py = python3.override { 8 + packageOverrides = self: super: { 9 + # Upstream is pinning releases incl. dependencies of their dependencies 10 + zeroconf = super.zeroconf.overridePythonAttrs (oldAttrs: rec { 11 + version = "0.31.0"; 12 + src = fetchFromGitHub { 13 + owner = "jstasiak"; 14 + repo = "python-zeroconf"; 15 + rev = version; 16 + sha256 = "158dqay74zvnz6kmpvip4ml0kw59nf2aaajwgaamx0zc8ci1p5pj"; 17 + }; 18 + }); 19 + 20 + click = super.click.overridePythonAttrs (oldAttrs: rec { 21 + version = "7.1.2"; 22 + src = oldAttrs.src.override { 23 + inherit version; 24 + sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"; 25 + }; 26 + }); 27 + 28 + PyChromecast = super.PyChromecast.overridePythonAttrs (oldAttrs: rec { 29 + version = "9.2.0"; 30 + src = oldAttrs.src.override { 31 + inherit version; 32 + sha256 = "02ig2wf2yyrnnl88r2n13s1naskwsifwgx3syifmcxygflsmjd3d"; 33 + }; 34 + }); 35 + }; 36 + }; 37 + in 38 + with py.pkgs; 4 39 5 40 buildPythonApplication rec { 6 41 pname = "catt"; 7 42 version = "0.12.2"; 8 43 44 + disabled = python3.pythonOlder "3.4"; 45 + 9 46 src = fetchPypi { 10 47 inherit pname version; 11 48 sha256 = "sha256-BOETKTkcbLOu5SubiejswU7D47qWS13QZ7rU9x3jf5Y="; ··· 19 56 youtube-dl 20 57 ]; 21 58 22 - # remove click when 0.12.3 is released 23 - # upstream doesn't use zeroconf directly but pins it for pychromecast 24 - postPatch = '' 25 - substituteInPlace setup.py \ 26 - --replace "zeroconf==0.31.0" "" \ 27 - --replace "Click>=7.1.2,<8" "click" 28 - ''; 59 + doCheck = false; # attempts to access various URLs 29 60 30 - doCheck = false; # attempts to access various URLs 31 61 pythonImportsCheck = [ "catt" ]; 32 62 33 63 meta = with lib; { 34 - description = "Cast All The Things allows you to send videos from many, many online sources to your Chromecast"; 64 + description = "Tool to send media from online sources to Chromecast devices"; 35 65 homepage = "https://github.com/skorokithakis/catt"; 36 66 license = licenses.bsd2; 37 67 maintainers = with maintainers; [ dtzWill ];