2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, attrs
|
|
|
|
, pluggy
|
|
|
|
, six
|
|
|
|
, pyhamcrest
|
|
|
|
, setuptools-scm
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "allure-python-commons-test";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.13.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-pWkLVfBrLEhdhuTE95K3aqrhEY2wEyo5uRzuJC3ngjE=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ attrs pluggy six pyhamcrest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m doctest ./src/container.py
|
|
|
|
${python.interpreter} -m doctest ./src/report.py
|
|
|
|
${python.interpreter} -m doctest ./src/label.py
|
|
|
|
${python.interpreter} -m doctest ./src/result.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "allure_commons_test" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Just pack of hamcrest matchers for validation result in allure2 json format";
|
|
|
|
homepage = "https://github.com/allure-framework/allure-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ evanjs ];
|
|
|
|
};
|
|
|
|
}
|