1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, matplotlib
6, numpy
7, pandas
8, pillow
9, pytest
10, pytest-datadir
11, pytestCheckHook
12, pyyaml
13, setuptools-scm
14}:
15
16buildPythonPackage rec {
17 pname = "pytest-regressions";
18 version = "2.4.2";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-6riee6SqM5vf4HsxBH6OanCx54RudKi7/DGliNAecwM=";
26 };
27
28 SETUPTOOLS_SCM_PRETEND_VERSION = version;
29
30 nativeBuildInputs = [
31 setuptools-scm
32 ];
33
34 buildInputs = [
35 pytest
36 ];
37
38 propagatedBuildInputs = [
39 numpy
40 pandas
41 pillow
42 pytest-datadir
43 pyyaml
44 ];
45
46
47 nativeCheckInputs = [
48 pytestCheckHook
49 matplotlib
50 ];
51
52 pythonImportsCheck = [
53 "pytest_regressions"
54 "pytest_regressions.plugin"
55 ];
56
57 meta = with lib; {
58 description = "Pytest fixtures to write regression tests";
59 longDescription = ''
60 pytest-regressions makes it simple to test general data, images,
61 files, and numeric tables by saving expected data in a data
62 directory (courtesy of pytest-datadir) that can be used to verify
63 that future runs produce the same data.
64 '';
65 homepage = "https://github.com/ESSS/pytest-regressions";
66 license = licenses.mit;
67 maintainers = with maintainers; [ AluisioASG ];
68 };
69}