depot/third_party/nixpkgs/pkgs/development/python-modules/pycritty/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

34 lines
870 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 = "A 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 ];
};
}