depot/third_party/nixpkgs/pkgs/development/python-modules/libpyvivotek/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
791 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
vcrpy,
}:
buildPythonPackage rec {
pname = "libpyvivotek";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "HarlemSquirrel";
repo = "python-vivotek";
rev = "v${version}";
sha256 = "pNlnGpDjdYE7Lxog8GGZV+UZZmfmt5bwHof5LngPQjg=";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytestCheckHook
vcrpy
];
pythonImportsCheck = [ "libpyvivotek" ];
meta = with lib; {
description = "Python Library for Vivotek IP Cameras";
homepage = "https://github.com/HarlemSquirrel/python-vivotek";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}