nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 889 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 pytestCheckHook, 7 requests, 8 requests-mock, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "py-canary"; 14 version = "0.5.4"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "snjoetw"; 19 repo = "py-canary"; 20 tag = version; 21 hash = "sha256-zylWkssU85eSfR+Di7vQGTr6hOQkqXCObv/PCDHoKHA="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ requests ]; 27 28 nativeCheckInputs = [ 29 mock 30 pytestCheckHook 31 requests-mock 32 ]; 33 34 pythonImportsCheck = [ "canary" ]; 35 36 disabledTests = [ 37 # Test requires network access 38 "test_location_with_motion_entry" 39 ]; 40 41 meta = { 42 description = "Python package for Canary Security Camera"; 43 homepage = "https://github.com/snjoetw/py-canary"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}