Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / py-canary / default.nix
blob7e0200abea3c8b020fa0bf1bced9d41352818b7b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 , requests-mock
9 , setuptools
12 buildPythonPackage rec {
13   pname = "py-canary";
14   version = "0.5.3";
15   format = "pyproject";
17   disabled = pythonOlder "3.6";
19   src = fetchFromGitHub {
20     owner = "snjoetw";
21     repo = pname;
22     rev = "refs/tags/${version}";
23     hash = "sha256-873XAf0jOX5pjrNRELEcTWCauk80FUYxTu7G7jc3MHE=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     requests
32   ];
34   nativeCheckInputs = [
35     mock
36     pytestCheckHook
37     requests-mock
38   ];
40   pythonImportsCheck = [
41     "canary"
42   ];
44   disabledTests = [
45     # Test requires network access
46     "test_location_with_motion_entry"
47   ];
49   meta = with lib; {
50     description = "Python package for Canary Security Camera";
51     homepage = "https://github.com/snjoetw/py-canary";
52     license = licenses.mit;
53     maintainers = with maintainers; [ fab ];
54   };