Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytestCheckHook 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "fritzconnection"; 11 version = "1.12.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "kbr"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-1giXmmyuy+qrY6xV3yZn4kcDd6w6l8uCL4ozcZE4N00="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 preCheck = '' 32 export HOME=$TEMP 33 ''; 34 35 pythonImportsCheck = [ 36 "fritzconnection" 37 ]; 38 39 meta = with lib; { 40 description = "Python module to communicate with the AVM Fritz!Box"; 41 homepage = "https://github.com/kbr/fritzconnection"; 42 changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/version_history.html"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ dotlambda valodim ]; 45 }; 46}