mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
pythonPackages.typogrify: refactor move to python-modules
This commit is contained in:
parent
fcb1e3bbba
commit
eb7fbb8c37
2 changed files with 33 additions and 17 deletions
32
pkgs/development/python-modules/typogrify/default.nix
Normal file
32
pkgs/development/python-modules/typogrify/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue