Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ lib, fetchFromGitHub, fetchpatch, # Python bits: buildPythonPackage, setuptools, responses, docopt, flask, markdown, path-and-address, pygments, requests, tabulate, addBinToPathHook, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "grip"; version = "4.6.1"; pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub { owner = "joeyespo"; repo = "grip"; tag = "v${finalAttrs.version}"; hash = "sha256-CHL2dy0H/i0pLo653F7aUHFvZHTeZA6jC/rwn1KrEW4="; };
patches = [ # https://github.com/NixOS/nixpkgs/issues/288478 (fetchpatch { name = "set-default-encoding.patch"; url = "https://github.com/joeyespo/grip/commit/2784eb2c1515f1cdb1554d049d48b3bff0f42085.patch"; hash = "sha256-veVJKJtt8mP1jmseRD7pNR3JgIxX1alYHyQok/rBpiQ="; }) ];
build-system = [ setuptools ];
dependencies = [ docopt flask markdown path-and-address pygments requests tabulate ];
pythonImportsCheck = [ "grip" ];
nativeCheckInputs = [ responses pytestCheckHook addBinToPathHook ];
enabledTestMarks = [ "not assumption" ];
meta = { description = "Preview GitHub Markdown files like Readme locally before committing them"; mainProgram = "grip"; homepage = "https://github.com/joeyespo/grip"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ koral ]; };})