depot/third_party/nixpkgs/pkgs/development/python-modules/allure-python-commons/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
1 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
pythonOlder,
attrs,
pluggy,
six,
allure-python-commons-test,
setuptools-scm,
python,
}:
buildPythonPackage rec {
pname = "allure-python-commons";
version = "2.13.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ojLnlVgR+Yjkmkwd1sFszn6bgdDqBCKx5WVNMlTiyvM=";
};
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 ];
};
}