1{ lib
2, fetchPypi
3, buildPythonPackage
4, pythonOlder
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.13.2";
16
17 disabled = pythonOlder "3.4";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-Xh6NtqiuTg7UxKqJ7/p45rCUQGWiGDEaNAslzeYtgfg=";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [ attrs pluggy six pyhamcrest ];
29
30 checkPhase = ''
31 ${python.interpreter} -m doctest ./src/container.py
32 ${python.interpreter} -m doctest ./src/report.py
33 ${python.interpreter} -m doctest ./src/label.py
34 ${python.interpreter} -m doctest ./src/result.py
35 '';
36
37 pythonImportsCheck = [ "allure_commons_test" ];
38
39 meta = with lib; {
40 description = "Just pack of hamcrest matchers for validation result in allure2 json format";
41 homepage = "https://github.com/allure-framework/allure-python";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ evanjs ];
44 };
45}