Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
867 B
Nix
40 lines
867 B
Nix
{
|
|
buildPythonPackage,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
lib,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libpyfoscamcgi";
|
|
version = "0.0.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Foscam-wangzhengyu";
|
|
repo = "libfoscamcgi";
|
|
tag = "v${version}";
|
|
hash = "sha256-QthzyMdZ2iberDmbeqf6MaUv8lH5xhlZLL8ZAlapvIk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
defusedxml
|
|
];
|
|
|
|
pythonImportsCheck = [ "libpyfoscamcgi" ];
|
|
|
|
# tests need access to a camera
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Foscam-wangzhengyu/libfoscamcgi/releases/tag/${src.tag}";
|
|
description = "Python Library for Foscam IP Cameras";
|
|
homepage = "https://github.com/Foscam-wangzhengyu/libfoscamcgi";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|