Merge pull request #175499 from fabaff/pyramid_chameleon-remove

python310Packages.pyramid_chameleon: fix compatibility with pyramid 2
This commit is contained in:
Fabian Affolter 2022-05-31 09:11:26 +02:00 committed by GitHub
commit 79151a6b28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
];
pythonImportsCheck = [ "pyramid_chameleon" ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyramid_chameleon"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;