depot/third_party/nixpkgs/pkgs/development/python-modules/fritzconnection/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

42 lines
864 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "fritzconnection";
version = "1.9.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kbr";
repo = pname;
rev = version;
sha256 = "sha256-wapZ4lCG0tfE+LbFVeIxVlbMJN/sSwIeYK5GLCqoWLs=";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"fritzconnection"
];
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/changes.html";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda valodim ];
};
}