python3Packages.grip: modernize

This commit is contained in:
Harinn
2026-07-19 00:29:23 +07:00
parent 63536a698f
commit 624bfc3588
@@ -16,15 +16,17 @@
tabulate,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "grip";
version = "4.6.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "joeyespo";
repo = "grip";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-CHL2dy0H/i0pLo653F7aUHFvZHTeZA6jC/rwn1KrEW4=";
};
@@ -59,6 +61,8 @@ buildPythonPackage rec {
py.test -xm "not assumption"
'';
pythonImportsCheck = [ "grip" ];
meta = {
description = "Preview GitHub Markdown files like Readme locally before committing them";
mainProgram = "grip";
@@ -66,4 +70,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ koral ];
};
}
})