1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6, pythonOlder 7, requests 8, requests-mock 9}: 10 11buildPythonPackage rec { 12 pname = "py-canary"; 13 version = "0.5.1"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "snjoetw"; 18 repo = pname; 19 rev = version; 20 sha256 = "0j743cc0wv7im3anx1vvdm79zyvw67swhc3zwwc1r8626dgnmxjr"; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 ]; 26 27 checkInputs = [ 28 mock 29 pytestCheckHook 30 requests-mock 31 ]; 32 33 pythonImportsCheck = [ "canary" ]; 34 35 meta = with lib; { 36 description = "Python package for Canary Security Camera"; 37 homepage = "https://github.com/snjoetw/py-canary"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}