depot/third_party/nixpkgs/pkgs/development/python-modules/zm-py/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
909 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "zm-py";
version = "0.5.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "rohankapoorcom";
repo = "zm-py";
rev = "refs/tags/v${version}";
hash = "sha256-n9FRX2Pnn96H0HVT4SHLJgONc0XzQ005itMNpvl9IYg=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "zoneminder" ];
meta = with lib; {
description = "Loose python wrapper around the ZoneMinder REST API";
homepage = "https://github.com/rohankapoorcom/zm-py";
changelog = "https://github.com/rohankapoorcom/zm-py/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
};
}