depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-mpl/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

67 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytest
, jinja2
, matplotlib
, pynose
, pillow
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-mpl";
version = "0.16.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-LVcWgRJOj/X04rnA0EfTfQSZ1rbY8vSaG1DN2ZMQRGk=";
};
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
jinja2
matplotlib
pynose
pillow
];
nativeCheckInputs = [
pytestCheckHook
];
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
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
ln -s $HOME/.config/matplotlib $HOME/.matplotlib
'';
meta = with lib; {
description = "Pytest plugin to help with testing figures output from Matplotlib";
homepage = "https://github.com/matplotlib/pytest-mpl";
license = licenses.bsd3;
maintainers = [ ];
};
}