at 18.03-beta 1.1 kB view raw
1{ stdenv 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 15}: 16 17buildPythonPackage rec { 18 pname = "grip"; 19 version = "4.4.0"; 20 21 src = fetchFromGitHub { 22 owner = "joeyespo"; 23 repo = "grip"; 24 rev = "v${version}"; 25 sha256 = "1768n3w40qg1njkzqjyl5gkva0h31k8h250821v69imj1zimymag"; 26 }; 27 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 ]; 35 36 checkInputs = [ pytest responses ]; 37 38 propagatedBuildInputs = [ docopt flask markdown path-and-address pygments requests tabulate ]; 39 40 checkPhase = '' 41 export PATH="$PATH:$out/bin" 42 py.test -xm "not assumption" 43 ''; 44 45 meta = with stdenv.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 }; 51}