1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 smartypants, 7 hatchling, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "typogrify"; 13 version = "2.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-8KoATpgDKm5r5MnaZefrcVDjbKO/UIrbzagrTQA+Ye4="; 21 }; 22 23 build-system = [ hatchling ]; 24 25 dependencies = [ smartypants ]; 26 27 pythonImportsCheck = [ "typogrify.filters" ]; 28 29 pytestFlags = [ 30 "--doctest-modules" 31 ]; 32 33 enabledTestPaths = [ 34 "typogrify/filters.py" 35 "typogrify/packages/titlecase/tests.py" 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 meta = with lib; { 43 description = "Filters to enhance web typography, including support for Django & Jinja templates"; 44 homepage = "https://github.com/justinmayer/typogrify"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ dotlambda ]; 47 }; 48}