{ lib, buildPythonPackage, pythonOlder, fetchPypi, smartypants, hatchling, pytestCheckHook, }: buildPythonPackage rec { pname = "typogrify"; version = "2.1.0"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; hash = "sha256-8KoATpgDKm5r5MnaZefrcVDjbKO/UIrbzagrTQA+Ye4="; }; build-system = [ hatchling ]; dependencies = [ smartypants ]; pythonImportsCheck = [ "typogrify.filters" ]; pytestFlags = [ "--doctest-modules" ]; enabledTestPaths = [ "typogrify/filters.py" "typogrify/packages/titlecase/tests.py" ]; nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Filters to enhance web typography, including support for Django & Jinja templates"; homepage = "https://github.com/justinmayer/typogrify"; license = licenses.bsd3; maintainers = with maintainers; [ dotlambda ]; }; }