Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 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 = "2.1.5"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.8"; 26 27 src = fetchPypi { 28 pname = "MarkupSafe"; 29 inherit version; 30 hash = "sha256-0oPTeokLpMGuc/+t+ARkNcdue8Ike7tjwAvRpwnGVEs="; 31 }; 32 33 nativeBuildInputs = [ setuptools ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "markupsafe" ]; 38 39 passthru.tests = { 40 inherit 41 jinja2 42 mkdocs 43 quart 44 werkzeug 45 ; 46 }; 47 48 meta = with lib; { 49 changelog = "https://markupsafe.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${ 50 replaceStrings [ "." ] [ "-" ] version 51 }"; 52 description = "Implements a XML/HTML/XHTML Markup safe string"; 53 homepage = "https://palletsprojects.com/p/markupsafe/"; 54 license = licenses.bsd3; 55 maintainers = with maintainers; [ domenkozar ]; 56 }; 57}