at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 10 # tests 11 pytestCheckHook, 12 13 # reverse dependencies 14 jinja2, 15 mkdocs, 16 quart, 17 werkzeug, 18}: 19 20buildPythonPackage rec { 21 pname = "markupsafe"; 22 version = "3.0.2"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.8"; 26 27 src = fetchFromGitHub { 28 owner = "pallets"; 29 repo = "markupsafe"; 30 tag = version; 31 hash = "sha256-BqCkQqPhjEx3qB/k3d3fSirR/HDBa7e4kpx3/VSwXJM="; 32 }; 33 34 build-system = [ setuptools ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "markupsafe" ]; 39 40 passthru.tests = { 41 inherit 42 jinja2 43 mkdocs 44 quart 45 werkzeug 46 ; 47 }; 48 49 meta = with lib; { 50 changelog = "https://markupsafe.palletsprojects.com/page/changes/#version-${ 51 replaceStrings [ "." ] [ "-" ] version 52 }"; 53 description = "Implements a XML/HTML/XHTML Markup safe string"; 54 homepage = "https://palletsprojects.com/p/markupsafe/"; 55 license = licenses.bsd3; 56 maintainers = with maintainers; [ ]; 57 }; 58}