My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/py-canary/default.nix

41 lines
767 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "py-canary";
version = "0.5.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "snjoetw";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "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 ];
};
}