Files
nixpkgs/pkgs/development/python-modules/markupsafe/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
# tests
pytestCheckHook,
# reverse dependencies
jinja2,
mkdocs,
quart,
werkzeug,
}:
buildPythonPackage rec {
pname = "markupsafe";
version = "3.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pallets";
repo = "markupsafe";
tag = version;
hash = "sha256-2d64cItemqVM25WJIKrjExKz6v4UW2wVxM6phH1g1sE=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "markupsafe" ];
passthru.tests = {
inherit
jinja2
mkdocs
quart
werkzeug
;
};
meta = with lib; {
changelog = "https://markupsafe.palletsprojects.com/page/changes/#version-${
replaceStrings [ "." ] [ "-" ] version
}";
description = "Implements a XML/HTML/XHTML Markup safe string";
homepage = "https://palletsprojects.com/p/markupsafe/";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}