Yueh-Shun Li 624897829b treewide: modernize Python package pytest flags
Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags`
instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
2025-07-15 03:00:08 +08:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitea,
setuptools,
setuptools-scm,
hypothesis,
pytest-benchmark,
pytest-timeout,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyppmd";
version = "1.1.1";
pyproject = true;
src = fetchFromGitea {
domain = "codeberg.org";
owner = "miurahr";
repo = "pyppmd";
tag = "v${version}";
hash = "sha256-0t1vyVMtmhb38C2teJ/Lq7dx4usm4Bzx+k7Zalf/nXE=";
};
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
hypothesis
pytest-benchmark
pytest-timeout
pytestCheckHook
];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [
"pyppmd"
];
meta = {
description = "PPMd compression/decompression library";
homepage = "https://codeberg.org/miurahr/pyppmd";
changelog = "https://codeberg.org/miurahr/pyppmd/src/tag/v${version}/Changelog.rst#v${version}";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
pitkling
PopeRigby
];
};
}