1{ lib, buildPythonPackage, fetchPypi, pythonOlder, pyyaml }: 2 3buildPythonPackage rec { 4 pname = "pycritty"; 5 version = "0.4.0"; 6 disabled = pythonOlder "3.6"; 7 8 src = fetchPypi { 9 inherit pname version; 10 hash = "sha256-Lh2zAEJTyzI8dJTNuyaf7gzhySMpui+CF9qRiubwFhE="; 11 }; 12 13 postPatch = '' 14 # remove custom install 15 substituteInPlace setup.py \ 16 --replace "'install': PostInstallHook," "" 17 ''; 18 19 propagatedBuildInputs = [ pyyaml ]; 20 21 # The package does not include any tests to run 22 doCheck = false; 23 24 pythonImportsCheck = [ "pycritty" ]; 25 26 meta = with lib; { 27 description = "A CLI tool for changing your alacritty configuration on the fly"; 28 homepage = "https://github.com/antoniosarosi/pycritty"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ jperras ]; 31 }; 32}