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
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
requests,
|
|
segno,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fritzconnection";
|
|
version = "1.15.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kbr";
|
|
repo = "fritzconnection";
|
|
tag = version;
|
|
hash = "sha256-ulY+nh9CSnxrktTlFSXAWJALkS4GwP/3dRIG07jQCWs=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
optional-dependencies = {
|
|
qr = [ segno ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = ''
|
|
export HOME=$TEMP
|
|
'';
|
|
|
|
pythonImportsCheck = [ "fritzconnection" ];
|
|
|
|
disabledTestPaths = [
|
|
# Functional tests require network access
|
|
"fritzconnection/tests/test_functional.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to communicate with the AVM Fritz!Box";
|
|
homepage = "https://github.com/kbr/fritzconnection";
|
|
changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/version_history.html";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
dotlambda
|
|
valodim
|
|
];
|
|
};
|
|
}
|