push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
mock,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "parameterized";
version = "0.9.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-f8kFJyzvpPNkwaNCnLvpwPmLeTmI77W/kKrIDwjbCbE=";
};
patches = [
(fetchpatch2 {
name = "parameterized-docstring-3.13-compat.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/parameterized/files/parameterized-0.9.0-py313-test.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5";
hash = "sha256-tWcN0eRC0oRHrOaa/cctXLhi1WapDKvxO36e6gU6UIk=";
})
];
postPatch = ''
# broken with pytest 7 and python 3.12
# https://github.com/wolever/parameterized/issues/167
# https://github.com/wolever/parameterized/pull/162
substituteInPlace parameterized/test.py \
--replace 'assert_equal(missing, [])' "" \
--replace "assertRaisesRegexp" "assertRaisesRegex"
'';
nativeBuildInputs = [ setuptools ];
# 'yield' keyword is allowed in fixtures, but not in tests (test_naked_function)
doCheck = false;
checkInputs = [
mock
pytestCheckHook
];
enabledTestPaths = [ "parameterized/test.py" ];
pythonImportsCheck = [ "parameterized" ];
meta = with lib; {
description = "Parameterized testing with any Python test framework";
homepage = "https://github.com/wolever/parameterized";
changelog = "https://github.com/wolever/parameterized/blob/v${version}/CHANGELOG.txt";
license = licenses.bsd2;
maintainers = [ ];
};
}