2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, chameleon
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchpatch
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyramid
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, setuptools
|
2022-06-16 17:23:12 +00:00
|
|
|
, zope_interface
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "pyramid-chameleon";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "0.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "pyramid_chameleon";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "sha256-0XZ5KlDrAV14ZbRL2bJKe9BIn6mlzrvRe54FBIzvkBc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# https://github.com/Pylons/pyramid_chameleon/pull/25
|
|
|
|
./test-renderers-pyramid-import.patch
|
2022-06-16 17:23:12 +00:00
|
|
|
# Compatibility with pyramid 2, https://github.com/Pylons/pyramid_chameleon/pull/34
|
|
|
|
(fetchpatch {
|
|
|
|
name = "support-later-limiter.patch";
|
|
|
|
url = "https://github.com/Pylons/pyramid_chameleon/commit/36348bf4c01f52c3461e7ba4d20b1edfc54dba50.patch";
|
|
|
|
sha256 = "sha256-cPS7JhcS8nkBS1T0OdZke25jvWHT0qkPFjyPUDKHBGU=";
|
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
chameleon
|
|
|
|
pyramid
|
|
|
|
setuptools
|
|
|
|
zope_interface
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyramid_chameleon"
|
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Chameleon template compiler for pyramid";
|
|
|
|
homepage = "https://github.com/Pylons/pyramid_chameleon";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|