c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
32 lines
640 B
Nix
32 lines
640 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libpyfoscam";
|
|
version = "1.2.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2E6zQT86UEOKoFnAfXfeWt352HIdOQZBGy5vR0WQO6Y=";
|
|
};
|
|
|
|
# tests need access to a camera
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"libpyfoscam"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python Library for Foscam IP Cameras";
|
|
homepage = "https://github.com/krmarien/python-foscam";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|