nixpkgs/pkgs/development/python-modules/grip/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

42 lines
884 B
Nix

{ lib
, fetchFromGitHub
# Python bits:
, buildPythonPackage
, pytest
, responses
, docopt
, flask
, markdown
, path-and-address
, pygments
, requests
, tabulate
}:
buildPythonPackage rec {
pname = "grip";
version = "4.6.1";
src = fetchFromGitHub {
owner = "joeyespo";
repo = "grip";
rev = "v${version}";
sha256 = "sha256-CHL2dy0H/i0pLo653F7aUHFvZHTeZA6jC/rwn1KrEW4=";
};
nativeCheckInputs = [ pytest responses ];
propagatedBuildInputs = [ docopt flask markdown path-and-address pygments requests tabulate ];
checkPhase = ''
export PATH="$PATH:$out/bin"
py.test -xm "not assumption"
'';
meta = with lib; {
description = "Preview GitHub Markdown files like Readme locally before committing them";
homepage = "https://github.com/joeyespo/grip";
license = licenses.mit;
maintainers = with maintainers; [ koral ];
};
}