Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 56 lines 1.1 kB view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, poetry 5, isPy27 6, docopt 7, easywatch 8, jinja2 9, pytestCheckHook 10, pytest-check 11, markdown 12}: 13 14buildPythonPackage rec { 15 pname = "staticjinja"; 16 version = "1.0.4"; 17 format = "pyproject"; 18 19 disabled = isPy27; # 0.4.0 drops python2 support 20 21 # No tests in pypi 22 src = fetchFromGitHub { 23 owner = "staticjinja"; 24 repo = pname; 25 rev = version; 26 sha256 = "1saz6f71s693gz9c2k3bq2di2mrkj65mgmfdg86jk0z0zzjk90y1"; 27 }; 28 29 nativeBuildInputs = [ 30 poetry 31 ]; 32 33 propagatedBuildInputs = [ 34 jinja2 35 docopt 36 easywatch 37 ]; 38 39 checkInputs = [ 40 pytestCheckHook 41 pytest-check 42 markdown 43 ]; 44 45 # The tests need to find and call the installed staticjinja executable 46 preCheck = '' 47 export PATH="$PATH:$out/bin"; 48 ''; 49 50 meta = with lib; { 51 description = "A library and cli tool that makes it easy to build static sites using Jinja2"; 52 homepage = "https://staticjinja.readthedocs.io/en/latest/"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ fgaz ]; 55 }; 56}