summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-05-30 23:35:38 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-05-31 07:15:43 +0000
commit804a6d1c63dc5ebbc016ab424b137bb322db649b (patch)
tree2bd3670208b949addaa211f7a675e836aa3e157f
parentREADME: 21.11 -> 22.05 (diff)
downloadnixpkgs-804a6d1c63dc5ebbc016ab424b137bb322db649b.tar.gz
python310Packages.pyramid_jinja2: disable failing testsorigin/backport-175525-to-release-22.05
- switch to pytestCheckHook - disable on older Python releases (cherry picked from commit c9098ff0bb3f08ada15b0b2a47095a34488e0ef0)
-rw-r--r--pkgs/development/python-modules/pyramid_jinja2/default.nix43
1 files changed, 37 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/pyramid_jinja2/default.nix b/pkgs/development/python-modules/pyramid_jinja2/default.nix
index 34e17024ee78..8543a950a8cd 100644
--- a/pkgs/development/python-modules/pyramid_jinja2/default.nix
+++ b/pkgs/development/python-modules/pyramid_jinja2/default.nix
@@ -3,23 +3,54 @@
, buildPythonPackage
, fetchPypi
, webtest
+, markupsafe
, jinja2
+, pytestCheckHook
+, zope_deprecation
, pyramid
+, pythonOlder
}:
buildPythonPackage rec {
- pname = "pyramid_jinja2";
+ pname = "pyramid-jinja2";
version = "2.10";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchPypi {
- inherit pname version;
- sha256 = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI=";
+ pname = "pyramid_jinja2";
+ inherit version;
+ hash = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI=";
};
- buildInputs = [ webtest ];
- propagatedBuildInputs = [ jinja2 pyramid ];
+ propagatedBuildInputs = [
+ markupsafe
+ jinja2
+ pyramid
+ zope_deprecation
+ ];
+
+ checkInputs = [
+ webtest
+ pytestCheckHook
+ ];
+
+ postPatch = ''
+ substituteInPlace setup.cfg \
+ --replace " --cov" ""
+ '';
+
+ pythonImportsCheck = [
+ "pyramid_jinja2"
+ ];
- pythonImportsCheck = [ "pyramid_jinja2" ];
+ disabledTests = [
+ # AssertionError: Lists differ: ['pyramid_jinja2-2.10',...
+ "test_it_relative_to_package"
+ # AssertionError: False is not true
+ "test_options"
+ ];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;