0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-18 16:10:19 +03:00
nixpkgs/pkgs/development/python-modules/allure-python-commons/default.nix

52 lines
1 KiB
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
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=";
};
2024-05-22 16:01:06 +02:00
nativeBuildInputs = [ setuptools-scm ];
2024-05-22 16:01:06 +02:00
propagatedBuildInputs = [
attrs
pluggy
six
allure-python-commons-test
];
checkPhase = ''
${python.interpreter} -m doctest ./src/utils.py
${python.interpreter} -m doctest ./src/mapping.py
'';
2024-05-22 16:01:06 +02:00
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 ];
};
}