nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 67 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, isPyPy 6 7# propagates 8, markupsafe 9 10# extras: Babel 11, babel 12 13# tests 14, mock 15, pytestCheckHook 16}: 17 18buildPythonPackage rec { 19 pname = "Mako"; 20 version = "1.2.0"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchPypi { 25 inherit pname version; 26 sha256 = "sha256-mnx+kiuH2zaGIQz0nV12cDOkHUAQsoTnR2gskr3dizk="; 27 }; 28 29 propagatedBuildInputs = [ 30 markupsafe 31 ]; 32 33 passthru.optional-dependencies = { 34 babel = [ 35 babel 36 ]; 37 }; 38 39 checkInputs = [ 40 pytestCheckHook 41 mock 42 ] ++ passthru.optional-dependencies.babel; 43 44 disabledTests = lib.optionals isPyPy [ 45 # https://github.com/sqlalchemy/mako/issues/315 46 "test_alternating_file_names" 47 # https://github.com/sqlalchemy/mako/issues/238 48 "test_file_success" 49 "test_stdin_success" 50 # fails on pypy2.7 51 "test_bytestring_passthru" 52 ]; 53 54 disabledTestPaths = [ 55 # lingua dependency is not packaged 56 "test/ext/test_linguaplugin.py" 57 ]; 58 59 meta = with lib; { 60 description = "Super-fast templating language"; 61 homepage = "https://www.makotemplates.org/"; 62 changelog = "https://docs.makotemplates.org/en/latest/changelog.html"; 63 license = licenses.mit; 64 platforms = platforms.unix; 65 maintainers = with maintainers; [ domenkozar ]; 66 }; 67}