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";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pycritty";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/antoniosarosi/pycritty";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jperras ];
|
|
|
|
};
|
|
|
|
}
|