pythonPackages.pypugjs: init at 5.9.6
The Jade language was renamed to Pug, and this is the new Python package to support it. It is also better maintained than pyjade.
This commit is contained in:
parent
296793637b
commit
d47d113004
2 changed files with 41 additions and 0 deletions
39
pkgs/development/python-modules/pypugjs/default.nix
Normal file
39
pkgs/development/python-modules/pypugjs/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, six, chardet, nose
|
||||||
|
, django, jinja2, tornado, pyramid, pyramid_mako, Mako }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pypugjs";
|
||||||
|
version = "5.9.6";
|
||||||
|
|
||||||
|
# No source tarball on PyPI
|
||||||
|
# https://github.com/kakulukia/pypugjs/issues/68
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kakulukia";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "14hsl4jfzy5hf5qiwpjdy6vzzj9mvd2rvkcvjgciyz06vfccqd7y";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Allow newer pyramid versions
|
||||||
|
# https://github.com/kakulukia/pypugjs/pull/69
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/kakulukia/pypugjs/commit/2a77a59bee8526f7e3eb9d71c8241470dfff11f5.patch";
|
||||||
|
sha256 = "0d2bjh0f8hmbvmzi8ilj1xbpgszhhkapiql8yi0by2lrd525qspn";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six chardet ];
|
||||||
|
checkInputs = [ nose django jinja2 tornado pyramid pyramid_mako Mako ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests pypugjs
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates";
|
||||||
|
homepage = "https://github.com/kakulukia/pypugjs";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ lopsided98 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5414,6 +5414,8 @@ in {
|
||||||
|
|
||||||
pypubsub = callPackage ../development/python-modules/pypubsub { };
|
pypubsub = callPackage ../development/python-modules/pypubsub { };
|
||||||
|
|
||||||
|
pypugjs = callPackage ../development/python-modules/pypugjs { };
|
||||||
|
|
||||||
pyqrcode = callPackage ../development/python-modules/pyqrcode { };
|
pyqrcode = callPackage ../development/python-modules/pyqrcode { };
|
||||||
|
|
||||||
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix { inherit (pkgs) pkgconfig; };
|
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix { inherit (pkgs) pkgconfig; };
|
||||||
|
|
Loading…
Reference in a new issue