depot/third_party/nixpkgs/pkgs/development/python-modules/py-canary/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

45 lines
797 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "py-canary";
version = "0.5.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "snjoetw";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-PE31J82Uc6mErnh7nQ1pkIjnMbuCnlYEX2R0azknMHQ=";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
mock
pytestCheckHook
requests-mock
];
pythonImportsCheck = [
"canary"
];
meta = with lib; {
description = "Python package for Canary Security Camera";
homepage = "https://github.com/snjoetw/py-canary";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}