2021-06-28 23:13:55 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pyyaml }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycritty";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "0.4.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-21 08:47:16 +00:00
|
|
|
sha256 = "sha256-Lh2zAEJTyzI8dJTNuyaf7gzhySMpui+CF9qRiubwFhE=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# remove custom install
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'install': PostInstallHook," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyyaml ];
|
|
|
|
|
|
|
|
# The package does not include any tests to run
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pycritty" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI tool for changing your alacritty configuration on the fly";
|
|
|
|
homepage = "https://github.com/antoniosarosi/pycritty";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jperras ];
|
|
|
|
};
|
|
|
|
}
|