mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
36 lines
821 B
Nix
36 lines
821 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fritzconnection";
|
|
version = "1.7.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kbr";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-1HzeNtSqzqr9zyxF1PVWi6QfRupw8huMYmdFI6rzIdY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|