diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-05-30 19:37:25 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-05-31 07:17:55 +0000 |
| commit | 149e0bfea14a128328ca48d3fe26a7af3e81b233 (patch) | |
| tree | da5e4e08ec41ff643177046864bed81654a45588 | |
| parent | README: 21.11 -> 22.05 (diff) | |
| download | nixpkgs-origin/backport-175499-to-release-22.05.tar.gz | |
python310Packages.pyramid_chameleon: fix compatibility with pyramid 2origin/backport-175499-to-release-22.05
(cherry picked from commit 1980cec089c745cd3c67b7f0772b2c3feb2c9e42)
| -rw-r--r-- | pkgs/development/python-modules/pyramid_chameleon/default.nix | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pyramid_chameleon/default.nix b/pkgs/development/python-modules/pyramid_chameleon/default.nix index ad2ce8219569..87ccc32a3aa8 100644 --- a/pkgs/development/python-modules/pyramid_chameleon/default.nix +++ b/pkgs/development/python-modules/pyramid_chameleon/default.nix @@ -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; |
