nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, pytestCheckHook
6, pythonOlder
7, requests
8, requests-mock
9}:
10
11buildPythonPackage rec {
12 pname = "py-canary";
13 version = "0.5.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "snjoetw";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-PE31J82Uc6mErnh7nQ1pkIjnMbuCnlYEX2R0azknMHQ=";
23 };
24
25 propagatedBuildInputs = [
26 requests
27 ];
28
29 checkInputs = [
30 mock
31 pytestCheckHook
32 requests-mock
33 ];
34
35 pythonImportsCheck = [
36 "canary"
37 ];
38
39 meta = with lib; {
40 description = "Python package for Canary Security Camera";
41 homepage = "https://github.com/snjoetw/py-canary";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}