1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
56 lines
999 B
Nix
56 lines
999 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
|
|
# reverse dependencies
|
|
jinja2,
|
|
mkdocs,
|
|
quart,
|
|
werkzeug,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "markupsafe";
|
|
version = "3.0.3";
|
|
pyproject = true;
|
|
|
|
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 = {
|
|
changelog = "https://markupsafe.palletsprojects.com/page/changes/#version-${
|
|
lib.replaceStrings [ "." ] [ "-" ] version
|
|
}";
|
|
description = "Implements a XML/HTML/XHTML Markup safe string";
|
|
homepage = "https://palletsprojects.com/p/markupsafe/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|