From 77330e18f4b19aa08e3389a0d22fddc3c3c62493 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 10 Mar 2018 08:32:42 +0100 Subject: [PATCH] pyjade: move to own file and fix homepage --- .../python-modules/pyjade/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 27 +---------------- 2 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 pkgs/development/python-modules/pyjade/default.nix diff --git a/pkgs/development/python-modules/pyjade/default.nix b/pkgs/development/python-modules/pyjade/default.nix new file mode 100644 index 000000000000..ad6742f5deb3 --- /dev/null +++ b/pkgs/development/python-modules/pyjade/default.nix @@ -0,0 +1,29 @@ +{ stdenv, buildPythonPackage, fetchPypi, pyramid_mako, nose, django, jinja2 +, tornado, pyramid, Mako, six }: + +buildPythonPackage rec { + pname = "pyjade"; + version = "4.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1mycn5cc9cp4fb0i2vzgkkk6d0glnkbilggwb4i99i09vr0vg5cd"; + }; + + buildInputs = [ pyramid_mako nose django jinja2 tornado pyramid Mako ]; + propagatedBuildInputs = [ six ]; + postPatch = '' + sed -i 's/1.4.99/1.99/' setup.py + ''; + checkPhase = '' + nosetests pyjade + ''; + # No tests distributed. https://github.com/syrusakbary/pyjade/issues/262 + doCheck = false; + meta = with stdenv.lib; { + description = "Jade syntax template adapter for Django, Jinja2, Mako and Tornado templates"; + homepage = "https://github.com/syrusakbary/pyjade"; + license = licenses.mit; + maintainers = with maintainers; [ nand0p ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aa7417663159..c88c15a32712 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3035,32 +3035,7 @@ in { pydub = callPackage ../development/python-modules/pydub {}; - pyjade = buildPythonPackage rec { - name = "${pname}-${version}"; - pname = "pyjade"; - version = "4.0.0"; - src = pkgs.fetchurl { - url = "mirror://pypi/p/${pname}/${name}.tar.gz"; - sha256 = "1mycn5cc9cp4fb0i2vzgkkk6d0glnkbilggwb4i99i09vr0vg5cd"; - }; - buildInputs = with self; [ pyramid_mako nose django jinja2 tornado pyramid Mako ]; - propagatedBuildInputs = with self; [ six ]; - patchPhase = '' - sed -i 's/1.4.99/1.99/' setup.py - ''; - checkPhase = '' - nosetests pyjade - ''; - # No tests distributed. https://github.com/syrusakbary/pyjade/issues/262 - doCheck = false; - meta = { - description = "Jade syntax template adapter for Django, Jinja2, Mako and Tornado templates"; - homepage = "http://github.com/syrusakbary/pyjade"; - license = licenses.mit; - maintainers = with maintainers; [ nand0p ]; - platforms = platforms.all; - }; - }; + pyjade = callPackage ../development/python-modules/pyjade {}; PyLD = callPackage ../development/python-modules/PyLD { };