about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hikvision/default.nix
blob: 23f6387853a823d136cdcacb7c2e0f3630eb402e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "hikvision";
  version = "2.0.4";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "fbradyirl";
    repo = pname;
    rev = "v${version}";
    sha256 = "1l0zvir4hf1pcwwcmrhkspbdljzmi4lknxar5bkipdanpsm588mn";
  };

  propagatedBuildInputs = [
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "hikvision.api" ];

  meta = with lib; {
    description = "Python module for interacting with Hikvision IP Cameras";
    homepage = "https://github.com/fbradyirl/hikvision";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}