python.pkgs.cheetah: move and update expression

This commit is contained in:
Frederik Rietdijk 2017-12-05 20:21:23 +01:00
parent 587556ce1d
commit e60a1fd433
2 changed files with 34 additions and 17 deletions

View File

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, markdown
, isPy3k
, TurboCheetah
}:
buildPythonPackage rec {
pname = "cheetah";
version = "2.4.4";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550";
};
propagatedBuildInputs = [ markdown ];
doCheck = false; # Circular dependency
checkInputs = [
TurboCheetah
];
meta = {
homepage = http://www.cheetahtemplate.org/;
description = "A template engine and code generation tool";
license = lib.licenses.mit;
};
}

View File

@ -2446,23 +2446,7 @@ in {
characteristic = callPackage ../development/python-modules/characteristic { };
cheetah = buildPythonPackage rec {
version = "2.4.4";
name = "cheetah-${version}";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/C/Cheetah/Cheetah-${version}.tar.gz";
sha256 = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550";
};
propagatedBuildInputs = with self; [ self.markdown ];
meta = {
homepage = http://www.cheetahtemplate.org/;
description = "A template engine and code generation tool";
};
};
cheetah = callPackage ../development/python-modules/cheetah { };
cherrypy = callPackage ../development/python-modules/cherrypy {};