2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
43 lines
971 B
Nix
43 lines
971 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, attrs
|
|
, pluggy
|
|
, six
|
|
, allure-python-commons-test
|
|
, setuptools-scm
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "allure-python-commons";
|
|
version = "2.13.2";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-igNoEzAjGx3q3Ya5f/aIQcZZEyARSuY4Vw8e1g16IDM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [ attrs pluggy six allure-python-commons-test ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m doctest ./src/utils.py
|
|
${python.interpreter} -m doctest ./src/mapping.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "allure" "allure_commons" ];
|
|
|
|
meta = with lib; {
|
|
description = "Common engine for all modules. It is useful for make integration with your homemade frameworks";
|
|
homepage = "https://github.com/allure-framework/allure-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ evanjs ];
|
|
};
|
|
}
|