pythonPackages.typogrify: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 13:48:16 -04:00
parent fcb1e3bbba
commit eb7fbb8c37
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 33 additions and 17 deletions

View file

@ -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 ];
};
}

View file

@ -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";