1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 attrs,
6 pluggy,
7 six,
8 pyhamcrest,
9 setuptools-scm,
10 python,
11}:
12
13buildPythonPackage rec {
14 pname = "allure-python-commons-test";
15 version = "2.15.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 pname = "allure_python_commons_test";
20 inherit version;
21 hash = "sha256-5l/9K6ToYEGaYXOmVxB188wu9gQ+2cMHxfVNlX8Rz9g=";
22 };
23
24 nativeBuildInputs = [ setuptools-scm ];
25
26 propagatedBuildInputs = [
27 attrs
28 pluggy
29 six
30 pyhamcrest
31 ];
32
33 checkPhase = ''
34 ${python.interpreter} -m doctest ./src/container.py
35 ${python.interpreter} -m doctest ./src/report.py
36 ${python.interpreter} -m doctest ./src/label.py
37 ${python.interpreter} -m doctest ./src/result.py
38 '';
39
40 pythonImportsCheck = [ "allure_commons_test" ];
41
42 meta = with lib; {
43 description = "Just pack of hamcrest matchers for validation result in allure2 json format";
44 homepage = "https://github.com/allure-framework/allure-python";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ evanjs ];
47 };
48}