841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
32 lines
818 B
Nix
32 lines
818 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pyyaml }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycritty";
|
|
version = "0.3.5";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1lrmd4a1ps3h9z0pndfjfrd2qa7v3abd6np75fd2q2ffsqv7ar6x";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|