2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
|
|
|
|
# reverse dependencies
|
|
|
|
jinja2,
|
|
|
|
mkdocs,
|
|
|
|
quart,
|
|
|
|
werkzeug,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "markupsafe";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.1.5";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
src = fetchPypi {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "MarkupSafe";
|
|
|
|
inherit version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-0oPTeokLpMGuc/+t+ARkNcdue8Ike7tjwAvRpwnGVEs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "markupsafe" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit
|
|
|
|
jinja2
|
|
|
|
mkdocs
|
|
|
|
quart
|
|
|
|
werkzeug
|
2024-06-05 15:53:02 +00:00
|
|
|
;
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
2021-07-21 07:28:18 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://markupsafe.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${
|
|
|
|
replaceStrings [ "." ] [ "-" ] version
|
|
|
|
}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Implements a XML/HTML/XHTML Markup safe string";
|
2021-07-21 07:28:18 +00:00
|
|
|
homepage = "https://palletsprojects.com/p/markupsafe/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|