nixpkgs/pkgs/development/python-modules/ring-doorbell/default.nix
2023-09-16 11:30:05 +02:00

50 lines
974 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, oauthlib
, pytestCheckHook
, pythonOlder
, pytz
, requests
, requests-mock
, requests-oauthlib
}:
buildPythonPackage rec {
pname = "ring-doorbell";
version = "0.7.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "ring_doorbell";
inherit version;
hash = "sha256-HYRuQZpdtBkVfFBdqQupAjzQpLIBvKGm42cCumc03GM=";
};
propagatedBuildInputs = [
oauthlib
pytz
requests
requests-oauthlib
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [
"ring_doorbell"
];
meta = with lib; {
description = "Python library to communicate with Ring Door Bell";
homepage = "https://github.com/tchellomello/python-ring-doorbell";
changelog = "https://github.com/tchellomello/python-ring-doorbell/releases/tag/${version}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ graham33 ];
};
}