From 437f2c747b223a87de7a0a4aecf4ec9a9515a221 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 19 Apr 2022 13:56:32 +0200 Subject: [PATCH] python3Packages.pytest-mpl: fix build --- .../python-modules/pytest-mpl/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytest-mpl/default.nix b/pkgs/development/python-modules/pytest-mpl/default.nix index b5a5775f56e..040299ad544 100644 --- a/pkgs/development/python-modules/pytest-mpl/default.nix +++ b/pkgs/development/python-modules/pytest-mpl/default.nix @@ -1,7 +1,9 @@ { lib , buildPythonPackage , fetchPypi +, setuptools-scm , pytest +, jinja2 , matplotlib , nose , pillow @@ -17,11 +19,18 @@ buildPythonPackage rec { sha256 = "sha256-iE4HjS1TgK9WQzhOIzw1jpZZgl+y2X/9r48YXENMjYk="; }; + nativeBuildInputs = [ + setuptools-scm + ]; + buildInputs = [ pytest ]; + SETUPTOOLS_SCM_PRETEND_VERSION=version; + propagatedBuildInputs = [ + jinja2 matplotlib nose pillow @@ -31,12 +40,18 @@ buildPythonPackage rec { pytestCheckHook ]; - # Broken since b6e98f18950c2b5dbdc725c1181df2ad1be19fee + disabledTests = [ + # Broken since b6e98f18950c2b5dbdc725c1181df2ad1be19fee "test_hash_fails" "test_hash_missing" ]; + disabledTestPaths = [ + # Following are broken since at least a1548780dbc79d76360580691dc1bb4af4e837f6 + "tests/subtests/test_subtest.py" + ]; + preCheck = '' export HOME=$(mktemp -d) mkdir -p $HOME/.config/matplotlib