Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / markupsafe / default.nix
blobe63af344a3a003c3cb5dd529d33e60e9ee2d9ecf
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "markupsafe";
10   version = "2.1.3";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     pname = "MarkupSafe";
17     inherit version;
18     hash = "sha256-r1mO0y1q6G8bdHuCeDlYsaSrj2F7Bv5oeVx/Amq73K0=";
19   };
21   nativeCheckInputs = [
22     pytestCheckHook
23   ];
25   pythonImportsCheck = [ "markupsafe" ];
27   meta = with lib; {
28     changelog = "https://markupsafe.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${replaceStrings [ "." ] [ "-" ] version}";
29     description = "Implements a XML/HTML/XHTML Markup safe string";
30     homepage = "https://palletsprojects.com/p/markupsafe/";
31     license = licenses.bsd3;
32     maintainers = with maintainers; [ domenkozar ];
33   };