2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
# Python bits:
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytest
|
|
|
|
, responses
|
|
|
|
, docopt
|
|
|
|
, flask
|
|
|
|
, markdown
|
|
|
|
, path-and-address
|
|
|
|
, pygments
|
|
|
|
, requests
|
|
|
|
, tabulate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grip";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "4.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joeyespo";
|
|
|
|
repo = "grip";
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-CHL2dy0H/i0pLo653F7aUHFvZHTeZA6jC/rwn1KrEW4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest responses ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ docopt flask markdown path-and-address pygments requests tabulate ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PATH="$PATH:$out/bin"
|
|
|
|
py.test -xm "not assumption"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Preview GitHub Markdown files like Readme locally before committing them";
|
|
|
|
homepage = "https://github.com/joeyespo/grip";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|