Files
nixpkgs/pkgs/development/python-modules/allure-python-commons-test/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1.0 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
attrs,
pluggy,
six,
pyhamcrest,
setuptools-scm,
python,
}:
buildPythonPackage rec {
pname = "allure-python-commons-test";
version = "2.15.2";
format = "setuptools";
src = fetchPypi {
pname = "allure_python_commons_test";
inherit version;
hash = "sha256-SAjo9rM1zXAVBMD1c+rkMcR8zCeW1L3CErR/SxwjnXg=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
attrs
pluggy
six
pyhamcrest
];
checkPhase = ''
${python.interpreter} -m doctest ./src/container.py
${python.interpreter} -m doctest ./src/report.py
${python.interpreter} -m doctest ./src/label.py
${python.interpreter} -m doctest ./src/result.py
'';
pythonImportsCheck = [ "allure_commons_test" ];
meta = {
description = "Just pack of hamcrest matchers for validation result in allure2 json format";
homepage = "https://github.com/allure-framework/allure-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ evanjs ];
};
}