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