Commit 545c49e7 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.allure-pytest: remove tests parts

Tests are no longer shipped with PyPI releases, they are no
part of the meta package
parent 8cfef698
Loading
Loading
Loading
Loading
+12 −45
Original line number Diff line number Diff line
{ lib
, fetchPypi
, buildPythonPackage
, six
, pythonOlder
, allure-python-commons
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
, pytest-check
, pytest-flakes
, pytest-lazy-fixture
, pytest-rerunfailures
, pytest-xdist
, pyhamcrest
, mock
, pythonOlder
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "allure-pytest";
  version = "2.13.2";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -27,52 +19,27 @@ buildPythonPackage rec {
    hash = "sha256-IiQxWejsgc4rUlS0ATgCGYghsbQvEY9p1KKJOWYHx7M=";
  };

  buildInputs = [
    pytest
  ];

  nativeBuildInputs = [
    setuptools-scm
  ];

  pythonImportsCheck = [ "allure_pytest" ];
  buildInputs = [
    pytest
  ];

  propagatedBuildInputs = [
    allure-python-commons
    six
  ];

  nativeCheckInputs = [
    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"
  ];
  # Tests were moved to the meta package
  doCheck = false;

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

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