mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
49 lines
1,021 B
Nix
49 lines
1,021 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
ciso8601,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
pythonOlder,
|
|
setuptools,
|
|
yarl,
|
|
zeep,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "onvif-zeep-async";
|
|
version = "3.2.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openvideolibs";
|
|
repo = "python-onvif-zeep-async";
|
|
tag = "v${version}";
|
|
hash = "sha256-tEJTVdFQXr2nz0DkuIUjNDSSZUdD457SMrNAUqqsiH8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
ciso8601
|
|
httpx
|
|
yarl
|
|
zeep
|
|
] ++ zeep.optional-dependencies.async;
|
|
|
|
pythonImportsCheck = [ "onvif" ];
|
|
|
|
# Tests are not shipped
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "ONVIF Client Implementation in Python";
|
|
homepage = "https://github.com/hunterjm/python-onvif-zeep-async";
|
|
changelog = "https://github.com/openvideolibs/python-onvif-zeep-async/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "onvif-cli";
|
|
};
|
|
}
|