about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/allure-pytest/default.nix
blob: 49b5f683a6b40affe397398032eef0bf5981dc7a (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{ lib
, fetchPypi
, buildPythonPackage
, six
, pythonOlder
, allure-python-commons
, pytest
, pytestCheckHook
, pytest-check
, pytest-flakes
, pytest-lazy-fixture
, pytest-rerunfailures
, pytest-xdist
, pyhamcrest
, mock
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "allure-pytest";
  version = "2.9.45";

  disabled = pythonOlder "3.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "18ys5gi64jlfya6a7shj5lqhwc6cplwgyq3s2n5mg5x513g0yqi0";
  };

  buildInputs = [
    pytest
  ];

  nativeBuildInputs = [
    setuptools-scm
  ];

  pythonImportsCheck = [ "allure_pytest" ];

  propagatedBuildInputs = [
    allure-python-commons
    six
  ];

  checkInputs = [
    pyhamcrest
    mock
    pytestCheckHook
    pytest-check
    pytest-flakes
    pytest-lazy-fixture
    pytest-rerunfailures
    pytest-xdist
  ];

  pytestFlagsArray = [
    "--basetemp"
    "$(mktemp -d)"
    "--alluredir"
    "$(mktemp -d allure-results.XXXXXXX)"
    "-W"
    "ignore::pytest.PytestExperimentalApiWarning"
    "-p"
    "pytester"
  ];

  # we are skipping some of the integration tests for now
  disabledTests = [
    "test_pytest_check"
    "test_pytest_check_example"
    "test_select_by_testcase_id_test"
  ];

  meta = with lib; {
    description = "Allure pytest integration. It's developed as pytest plugin and distributed via pypi";
    homepage = "https://github.com/allure-framework/allure-python";
    license = licenses.asl20;
    maintainers = with maintainers; [ evanjs ];
  };
}