Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 48 lines 1.0 kB view raw
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.3"; 16 pyproject = true; 17 18 src = fetchPypi { 19 pname = "allure_python_commons_test"; 20 inherit version; 21 hash = "sha256-eRjjsxiXm/7nMyaJS5pXhpNmrjOhnd1o7+F9ZwGzI/I="; 22 }; 23 24 build-system = [ setuptools-scm ]; 25 26 dependencies = [ 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 = { 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 = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ evanjs ]; 47 }; 48}