Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / grip / default.nix
blobdafa692493e3d759ac4a629929379176360d056a
1 { lib
2 , fetchFromGitHub
3 , fetchpatch
4 # Python bits:
5 , buildPythonPackage
6 , pytest
7 , responses
8 , docopt
9 , flask
10 , markdown
11 , path-and-address
12 , pygments
13 , requests
14 , tabulate
17 buildPythonPackage rec {
18   pname = "grip";
19   version = "4.5.2";
21   src = fetchFromGitHub {
22     owner = "joeyespo";
23     repo = "grip";
24     rev = "v${version}";
25     sha256 = "0hphplnyi903jx7ghfxplg1qlj2kpcav1frr2js7p45pbh5ib9rm";
26   };
28   patches = [
29     # Render "front matter", used in our RFC template and elsewhere
30     (fetchpatch {
31       url = "https://github.com/joeyespo/grip/pull/249.patch";
32       sha256 = "07za5iymfv647dfrvi6hhj54a96hgjyarys51zbi08c51shqyzpg";
33     })
34   ];
36   checkInputs = [ pytest responses ];
38   propagatedBuildInputs = [ docopt flask markdown path-and-address pygments requests tabulate ];
40   checkPhase = ''
41       export PATH="$PATH:$out/bin"
42       py.test -xm "not assumption"
43   '';
45   meta = with lib; {
46     description = "Preview GitHub Markdown files like Readme locally before committing them";
47     homepage = "https://github.com/joeyespo/grip";
48     license = licenses.mit;
49     maintainers = with maintainers; [ koral ];
50   };