Skip to content

Commit

Permalink
typogrify: 2.0.7 -> 2.1.0
Browse files Browse the repository at this point in the history
Justin Mayer took over maintenance, and the former repo now links to his
one. Typogrify has been updated to use pyproject.toml. Tests can now be
enabled as well without encountering problems.
  • Loading branch information
antonmosich committed Jan 16, 2025
1 parent 07f7d75 commit 1378dd6
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions pkgs/development/python-modules/typogrify/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
smartypants,
hatchling,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "typogrify";
version = "2.0.7";
version = "2.1.0";
pyproject = true;

format = "setuptools";
disabled = pythonOlder "3.9";

src = fetchPypi {
inherit pname version;
sha256 = "8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38";
hash = "sha256-8KoATpgDKm5r5MnaZefrcVDjbKO/UIrbzagrTQA+Ye4=";
};

propagatedBuildInputs = [ smartypants ];
build-system = [ hatchling ];

# Wants to set up Django
doCheck = false;
dependencies = [ smartypants ];

pythonImportsCheck = [ "typogrify.filters" ];

pytestFlagsArray = [
"--doctest-modules"
"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/mintchaos/typogrify";
homepage = "https://github.com/justinmayer/typogrify";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
Expand Down

0 comments on commit 1378dd6

Please sign in to comment.