Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "markupsafe"; 10 version = "2.1.2"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 pname = "MarkupSafe"; 17 inherit version; 18 hash = "sha256-q8q8jCsmA21i1MdGOBpvfPYKr8xlMZitZ4MGmGsJRQ0="; 19 }; 20 21 nativeCheckInputs = [ 22 pytestCheckHook 23 ]; 24 25 pythonImportsCheck = [ "markupsafe" ]; 26 27 meta = with lib; { 28 description = "Implements a XML/HTML/XHTML Markup safe string"; 29 homepage = "https://palletsprojects.com/p/markupsafe/"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ domenkozar ]; 32 }; 33}