depot/third_party/nixpkgs/pkgs/development/python-modules/fritzconnection/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pytestCheckHook,
requests,
segno,
}:
buildPythonPackage rec {
pname = "fritzconnection";
version = "1.13.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kbr";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-nWXtXhF2pUBxHdrivi4DA7+bFiZPyxb2nqsiN3j4HdI=";
};
propagatedBuildInputs = [ requests ];
passthru.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
];
};
}