1{ lib
2, fetchPypi
3, buildPythonPackage
4, pythonOlder
5, attrs
6, pluggy
7, six
8, allure-python-commons-test
9, setuptools-scm
10, python
11}:
12
13buildPythonPackage rec {
14 pname = "allure-python-commons";
15 version = "2.10.0";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-1NMTRLDwA3pKEeFrkbKM8O6yP/oOUMJ/z8aqvnIhLTw=";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [ attrs pluggy six allure-python-commons-test ];
29
30 checkPhase = ''
31 ${python.interpreter} -m doctest ./src/utils.py
32 ${python.interpreter} -m doctest ./src/mapping.py
33 '';
34
35 pythonImportsCheck = [ "allure" "allure_commons" ];
36
37 meta = with lib; {
38 description = "Common engine for all modules. It is useful for make integration with your homemade frameworks";
39 homepage = "https://github.com/allure-framework/allure-python";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ evanjs ];
42 };
43}