2021-12-06 16:07:01 +00:00
|
|
|
{ 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";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.12.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-hbc7Hb6ZCLpPhLgBGKk+EEnALdWTIJJg2MHJUM8ob2w=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "allure_pytest" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
allure-python-commons
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|