Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "pyfritzhome"; 11 version = "0.6.8"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "hthiery"; 18 repo = "python-fritzhome"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-MIWRBwqVuS1iEuWxsE1yuGS2zHYVgnH2G4JJk7Yct6s="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "pyfritzhome" 33 ]; 34 35 meta = with lib; { 36 description = "Python Library to access AVM FRITZ!Box homeautomation"; 37 homepage = "https://github.com/hthiery/python-fritzhome"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ hexa ]; 40 }; 41}