depot/third_party/nixpkgs/pkgs/development/python-modules/pyramid-mako/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

42 lines
932 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
webtest,
pyramid,
mako,
}:
buildPythonPackage rec {
pname = "pyramid-mako";
version = "1.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0066c863441f1c3ddea60cee1ccc50d00a91a317a8052ca44131da1a12a840e2";
};
patches = [
# Fix tests with pyramid >= 2.0
# https://github.com/Pylons/pyramid_mako/pull/54
(fetchpatch {
url = "https://github.com/Pylons/pyramid_mako/commit/c0f9e7e0146a7f94e35a9401b1519ac8b7765f5b.patch";
sha256 = "15swfm0a07bdl32s85426rmjh72jwfasjcrl849ppg035z75q9fx";
})
];
buildInputs = [ webtest ];
propagatedBuildInputs = [
pyramid
mako
];
meta = with lib; {
homepage = "https://github.com/Pylons/pyramid_mako";
description = "Mako template bindings for the Pyramid web framework";
license = licenses.bsd0;
maintainers = [ ];
};
}