032cfaf859
> __________ ERROR collecting fritzconnection/tests/test_core_utils.py ___________ > Duplicate parametrization IDs detected, but strict_parametrization_ids is set. > > Test name: fritzconnection/tests/test_core_utils.py::test_get_boolean_from_string > Parameters: value, expected_result > Parameter sets: ['true', True], ['false', False], ['wahr', None], ['falsch', None], ['None', None], [42, None], ['', None], [None, None] > IDs: true-True, false-False, wahr-None, falsch-None, None-None, 42-None, -None, None-None > Duplicates: None-None > > You can fix this problem using `@pytest.mark.parametrize(..., ids=...)` or `pytest.param(..., id=...)`.
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest9_0CheckHook,
|
|
requests,
|
|
segno,
|
|
setuptools,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fritzconnection";
|
|
version = "1.15.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kbr";
|
|
repo = "fritzconnection";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-J07zAXZxQc3TCfsjYcBhQdxsYwHabE9vdj3eMkWua54=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
optional-dependencies = {
|
|
qr = [ segno ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest9_0CheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "fritzconnection" ];
|
|
|
|
disabledTestPaths = [
|
|
# Functional tests require network access
|
|
"fritzconnection/tests/test_functional.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python module to communicate with the AVM Fritz!Box";
|
|
homepage = "https://github.com/kbr/fritzconnection";
|
|
changelog = "https://fritzconnection.readthedocs.io/en/${finalAttrs.src.tag}/sources/version_history.html";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
dotlambda
|
|
valodim
|
|
];
|
|
};
|
|
})
|