My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pycritty/default.nix

32 lines
817 B

{ lib, buildPythonPackage, fetchPypi, pythonOlder, pyyaml }:
buildPythonPackage rec {
pname = "pycritty";
version = "0.4.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "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";
homepage = "https://github.com/antoniosarosi/pycritty";
license = licenses.mit;
maintainers = with maintainers; [ jperras ];
};
}