diff --git a/pkgs/development/python-modules/typogrify/default.nix b/pkgs/development/python-modules/typogrify/default.nix new file mode 100644 index 000000000000..85323cc77e71 --- /dev/null +++ b/pkgs/development/python-modules/typogrify/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPyPy +, django +, smartypants +, jinja2 +}: + +buildPythonPackage rec { + pname = "typogrify"; + version = "2.0.7"; + disabled = isPyPy; + + src = fetchPypi { + inherit pname version; + sha256 = "8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38"; + }; + + propagatedBuildInputs = [ django smartypants jinja2 ]; + + # Wants to set up Django + doCheck = false; + + meta = with stdenv.lib; { + description = "Filters to enhance web typography, including support for Django & Jinja templates"; + homepage = "https://github.com/mintchaos/typogrify"; + license = licenses.bsd3; + maintainers = with maintainers; [ garbas ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5f8cec39e4f8..2c66822170ad 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4437,23 +4437,7 @@ in { neovim_gui = callPackage ../development/python-modules/neovim_gui { }; - typogrify = buildPythonPackage rec { - name = "typogrify-2.0.7"; - src = pkgs.fetchurl { - url = "mirror://pypi/t/typogrify/${name}.tar.gz"; - sha256 = "8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38"; - }; - disabled = isPyPy; - # Wants to set up Django - doCheck = false; - propagatedBuildInputs = with self; [ django smartypants jinja2 ]; - meta = { - description = "Filters to enhance web typography, including support for Django & Jinja templates"; - homepage = "https://github.com/mintchaos/typogrify"; - license = licenses.bsd3; - maintainers = with maintainers; [ garbas ]; - }; - }; + typogrify = callPackage ../development/python-modules/typogrify { }; smartypants = buildPythonPackage rec { version = "1.8.6";