2021-06-15 11:13:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libpyfoscam";
|
2022-10-18 10:46:23 +00:00
|
|
|
version = "1.2.1";
|
2021-06-15 11:13:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-18 10:46:23 +00:00
|
|
|
sha256 = "sha256-2E6zQT86UEOKoFnAfXfeWt352HIdOQZBGy5vR0WQO6Y=";
|
2021-06-15 11:13:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests need access to a camera
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "libpyfoscam" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Library for Foscam IP Cameras";
|
|
|
|
homepage = "https://github.com/viswa-swami/python-foscam";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|