nixpkgs/pkgs/development/python-modules/pycritty/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 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 ];
};
}