depot/third_party/nixpkgs/pkgs/development/python-modules/pycritty/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pyyaml,
}:
buildPythonPackage rec {
pname = "pycritty";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.6";
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 = with lib; {
description = "CLI tool for changing your alacritty configuration on the fly";
mainProgram = "pycritty";
homepage = "https://github.com/antoniosarosi/pycritty";
license = licenses.mit;
maintainers = with maintainers; [ jperras ];
};
}