depot/third_party/nixpkgs/pkgs/development/python-modules/zm-py/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

47 lines
926 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 = "A 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 ];
};
}