Files
nixpkgs/pkgs/development/python-modules/onvif-zeep-async/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1.0 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
ciso8601,
fetchFromGitHub,
pythonOlder,
setuptools,
yarl,
zeep,
}:
buildPythonPackage rec {
pname = "onvif-zeep-async";
version = "4.0.4";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "openvideolibs";
repo = "python-onvif-zeep-async";
tag = "v${version}";
hash = "sha256-IZ48CB4+C+XS/Qt51hohurdQoJ1uANus/PodtZ9ZpCY=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
ciso8601
yarl
zeep
]
++ zeep.optional-dependencies.async;
pythonImportsCheck = [ "onvif" ];
# Tests are not shipped
doCheck = false;
meta = {
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "onvif-cli";
};
}