Skip to content

Commit

Permalink
Merge pull request #175499 from fabaff/pyramid_chameleon-remove
Browse files Browse the repository at this point in the history
python310Packages.pyramid_chameleon: fix compatibility with pyramid 2
  • Loading branch information
fabaff authored May 31, 2022
2 parents 2df10ed + 1980cec commit 79151a6
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions pkgs/development/python-modules/pyramid_chameleon/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,50 @@
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, chameleon
, fetchpatch
, fetchPypi
, pyramid
, zope_interface
, pytestCheckHook
, setuptools
, zope_interface
}:

buildPythonPackage rec {
pname = "pyramid_chameleon";
pname = "pyramid-chameleon";
version = "0.3";

src = fetchPypi {
inherit pname version;
sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
pname = "pyramid_chameleon";
inherit version;
sha256 = "sha256-0XZ5KlDrAV14ZbRL2bJKe9BIn6mlzrvRe54FBIzvkBc=";
};

patches = [
# https://github.com/Pylons/pyramid_chameleon/pull/25
./test-renderers-pyramid-import.patch
# 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=";
})
];

propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
propagatedBuildInputs = [
chameleon
pyramid
setuptools
zope_interface
];

checkInputs = [
pytestCheckHook
];

pythonImportsCheck = [ "pyramid_chameleon" ];
pythonImportsCheck = [
"pyramid_chameleon"
];

meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
Expand Down

0 comments on commit 79151a6

Please sign in to comment.