summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pycritty/default.nix
blob: e4dda5cd4fd8ab159b9453fd36d4f07a781f7d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pyyaml,
}:

buildPythonPackage rec {
  pname = "pycritty";
  version = "0.4.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Lh2zAEJTyzI8dJTNuyaf7gzhySMpui+CF9qRiubwFhE=";
  };

  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 = {
    description = "CLI tool for changing your alacritty configuration on the fly";
    mainProgram = "pycritty";
    homepage = "https://github.com/antoniosarosi/pycritty";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ jperras ];
  };
}