Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6}: 7 8buildPythonPackage rec { 9 pname = "libpyfoscam"; 10 version = "1.2.2"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-FLPerVzx2+3f5biiqt0JHJjBuMIalUBkY+bGb2ShVao="; 18 }; 19 20 # tests need access to a camera 21 doCheck = false; 22 23 pythonImportsCheck = [ "libpyfoscam" ]; 24 25 meta = with lib; { 26 description = "Python Library for Foscam IP Cameras"; 27 homepage = "https://github.com/krmarien/python-foscam"; 28 license = licenses.lgpl3Plus; 29 maintainers = with maintainers; [ dotlambda ]; 30 }; 31}