summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-md-report/default.nix
blob: f4344244c7ddfc249c6c4aba927cc3bd79cc8237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  setuptools-scm,
  pytablewriter,
  pytest,
  tcolorpy,
  typepy,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pytest-md-report";
  version = "0.7.0";
  pyproject = true;

  src = fetchPypi {
    pname = "pytest_md_report";
    inherit version;
    hash = "sha256-O4Mur2YLRwtXQuWNnJpeMSsHEqcBLSUcwE6QioHOPJY=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  propagatedBuildInputs = [
    pytablewriter
    tcolorpy
    typepy
  ];

  buildInputs = [ pytest ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pytest_md_report" ];

  meta = {
    description = "Pytest plugin to make a test results report with Markdown table format";
    homepage = "https://github.com/thombashi/pytest-md-report";
    changelog = "https://github.com/thombashi/pytest-md-report/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ rrbutani ];
  };
}